commit | c1e6e8672a308a2719b0a5f679fc73931c7546e3 | [log] [tgz] |
---|---|---|
author | Steve Anton <steveanton@webrtc.org> | Mon Mar 04 22:43:44 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Mar 05 17:51:14 2019 |
tree | b97be4463755cd28ea9a059e124c1752d876c142 | |
parent | d36c08623d9085dad821fbb1462a7fe03badcef5 [diff] |
Add metrics::Samples to facilitate easier testing Currently, tests that verify metrics use a combination of metrics::NumSamples and metrics::NumEvents to assert which samples were recorded and how many times they were recorded. This means that a comprehensive tests has n + 1 assertions for n distinct samples. The new metrics::Samples function returns a map of sample --> num events which can be asserted against using gmock matchers, achieving better coverage and better test failure messages in just one line. Bug: None Change-Id: I07d4a766654cfc04e414b77b6de02927683a361f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/125486 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Steve Anton <steveanton@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26974}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.