webrtc/system_wrappers/source
Steve Anton c1e6e8672a 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}
2019-03-05 17:51:14 +00:00
..
clock.cc webrtc: Remove semicolons. 2019-02-20 16:02:59 +00:00
clock_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
cpu_features.cc Delete root header file typedef.h. 2018-07-25 14:59:26 +00:00
cpu_features_android.c Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
cpu_features_linux.c Delete root header file typedef.h. 2018-07-25 14:59:26 +00:00
cpu_info.cc [Fuchsia] Implement detection of available cores. 2018-12-17 19:37:46 +00:00
event.cc Add default constructor for rtc::Event 2018-11-07 08:57:50 +00:00
field_trial.cc [Cleanup] Add missing #include. Remove useless ones. 2018-10-23 11:32:56 +00:00
metrics.cc Add metrics::Samples to facilitate easier testing 2019-03-05 17:51:14 +00:00
metrics_default_unittest.cc [Cleanup] Add missing #include. Remove useless ones. IWYU part 2. 2018-11-28 18:25:07 +00:00
metrics_unittest.cc Add metrics::Samples to facilitate easier testing 2019-03-05 17:51:14 +00:00
ntp_time_unittest.cc Run git cl format --full on the C++ files in system_wrappers/ 2017-11-08 15:02:19 +00:00
rtp_to_ntp_estimator.cc In RTP to NTP estimator use linear regression instead of ad hoc filter 2018-11-12 14:50:35 +00:00
rtp_to_ntp_estimator_unittest.cc Fix -Wextra-semi warnings. 2019-02-25 09:22:51 +00:00
sleep.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00