mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 13:50:40 +01:00
![]() 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} |
||
---|---|---|
.. | ||
clock.cc | ||
clock_unittest.cc | ||
cpu_features.cc | ||
cpu_features_android.c | ||
cpu_features_linux.c | ||
cpu_info.cc | ||
event.cc | ||
field_trial.cc | ||
metrics.cc | ||
metrics_default_unittest.cc | ||
metrics_unittest.cc | ||
ntp_time_unittest.cc | ||
rtp_to_ntp_estimator.cc | ||
rtp_to_ntp_estimator_unittest.cc | ||
sleep.cc |