Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(659)

Unified Diff: webrtc/modules/remote_bitrate_estimator/test/metric_recorder_unittest.cc

Issue 1270543002: Supporting Pause/Resume, Sending Estimate logging. Corrected plot colors (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Removed PacketSender member from MetricRecorder Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/remote_bitrate_estimator/test/metric_recorder_unittest.cc
diff --git a/webrtc/modules/remote_bitrate_estimator/test/metric_recorder_unittest.cc b/webrtc/modules/remote_bitrate_estimator/test/metric_recorder_unittest.cc
index b364dfda8d25d02635692faa167412cfc525a9b2..7d4ed5fd5f433b20287b03a1c8b6a03e42054fda 100644
--- a/webrtc/modules/remote_bitrate_estimator/test/metric_recorder_unittest.cc
+++ b/webrtc/modules/remote_bitrate_estimator/test/metric_recorder_unittest.cc
@@ -10,6 +10,7 @@
#include "webrtc/modules/remote_bitrate_estimator/test/metric_recorder.h"
+#include <math.h>
#include <algorithm>
#include <vector>
@@ -46,7 +47,7 @@ TEST_F(MetricRecorderTest, RegularPackets) {
for (int i = 0; i < kNumPackets; ++i) {
int64_t arrival_time_ms = kInterpacketGapMs * i + kDelayMs;
- metric_recorder_.UpdateTime(arrival_time_ms);
+ metric_recorder_.UpdateTimeMs(arrival_time_ms);
metric_recorder_.PushDelayMs(kDelayMs, arrival_time_ms);
metric_recorder_.PushThroughputBytes(kPayloadSizeBytes, arrival_time_ms);
}
@@ -80,7 +81,7 @@ TEST_F(MetricRecorderTest, VariableDelayPackets) {
for (int i = 0; i < kNumPackets; ++i) {
int64_t arrival_time_ms = kInterpacketGapMs * i + delays_ms[i];
last_received_ms = std::max(last_received_ms, arrival_time_ms);
- metric_recorder_.UpdateTime(arrival_time_ms);
+ metric_recorder_.UpdateTimeMs(arrival_time_ms);
metric_recorder_.PushDelayMs(delays_ms[i], arrival_time_ms);
metric_recorder_.PushThroughputBytes(kPayloadSizeBytes, arrival_time_ms);
}

Powered by Google App Engine
This is Rietveld 408576698