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

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

Issue 1202253003: More Simulation Framework features (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Using rtc::scoped_ptr on nada_unittest.cc 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/bwe_test.cc
diff --git a/webrtc/modules/remote_bitrate_estimator/test/bwe_test.cc b/webrtc/modules/remote_bitrate_estimator/test/bwe_test.cc
index a2ce34084e38f31dbac406afd05c835140adf5c7..182f93193e6d98755ffedc0dd973e78a961043aa 100644
--- a/webrtc/modules/remote_bitrate_estimator/test/bwe_test.cc
+++ b/webrtc/modules/remote_bitrate_estimator/test/bwe_test.cc
@@ -48,7 +48,7 @@ void PacketProcessorRunner::RunFor(int64_t time_ms,
processor_->RunFor(time_ms, &to_process);
QueuePackets(&to_process, time_now_ms * 1000);
if (!to_process.empty()) {
- processor_->Plot((to_process.back()->send_time_us() + 500) / 1000);
+ processor_->Plot(to_process.back()->send_time_ms());
}
in_out->merge(to_process, DereferencingComparator<Packet>);
}
@@ -269,11 +269,11 @@ void BweTest::RunFairnessTest(BandwidthEstimatorType bwe_type,
senders.push_back(new TcpSender(&uplink_, tcp_flow, kTcpStartOffsetMs));
ChokeFilter choke(&uplink_, all_flow_ids);
- choke.SetCapacity(capacity_kbps);
- choke.SetMaxDelay(max_delay_ms);
+ choke.set_capacity_kbps(capacity_kbps);
+ choke.set_max_delay_ms(max_delay_ms);
DelayFilter delay_uplink(&uplink_, all_flow_ids);
- delay_uplink.SetDelayMs(25);
+ delay_uplink.SetOneWayDelayMs(25);
std::vector<RateCounterFilter*> rate_counters;
for (int flow : all_flow_ids) {
@@ -296,7 +296,7 @@ void BweTest::RunFairnessTest(BandwidthEstimatorType bwe_type,
}
DelayFilter delay_downlink(&downlink_, all_flow_ids);
- delay_downlink.SetDelayMs(25);
+ delay_downlink.SetOneWayDelayMs(25);
RunFor(run_time_seconds * 1000);
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/test/bwe.cc ('k') | webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698