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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/bwe_simulations.cc

Issue 2762963002: Make lint errors fatal in presubmit and fix files in whitelisted paths (Closed)
Patch Set: Make lint errors fatal in presubmit Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « webrtc/api/rtcerror.h ('k') | webrtc/modules/remote_bitrate_estimator/test/bwe.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 RateCounterFilter counter2(&uplink_, 0, "Receiver", bwe_names[GetParam()]); 59 RateCounterFilter counter2(&uplink_, 0, "Receiver", bwe_names[GetParam()]);
60 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); 60 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true);
61 ASSERT_TRUE(filter.Init(test::ResourcePath("sprint-uplink", "rx"))); 61 ASSERT_TRUE(filter.Init(test::ResourcePath("sprint-uplink", "rx")));
62 RunFor(60 * 1000); 62 RunFor(60 * 1000);
63 } 63 }
64 64
65 TEST_P(BweSimulation, Verizon4gDownlinkTest) { 65 TEST_P(BweSimulation, Verizon4gDownlinkTest) {
66 AdaptiveVideoSource source(0, 30, 300, 0, 0); 66 AdaptiveVideoSource source(0, 30, 300, 0, 0);
67 VideoSender sender(&downlink_, &source, GetParam()); 67 VideoSender sender(&downlink_, &source, GetParam());
68 RateCounterFilter counter1(&downlink_, 0, "sender_output", 68 RateCounterFilter counter1(&downlink_, 0, "sender_output",
69 bwe_names[GetParam()] + "_up"); 69 std::string() + bwe_names[GetParam()] + "_up");
70 TraceBasedDeliveryFilter filter(&downlink_, 0, "link_capacity"); 70 TraceBasedDeliveryFilter filter(&downlink_, 0, "link_capacity");
71 RateCounterFilter counter2(&downlink_, 0, "Receiver", 71 RateCounterFilter counter2(&downlink_, 0, "Receiver",
72 bwe_names[GetParam()] + "_down"); 72 std::string() + bwe_names[GetParam()] + "_down");
73 PacketReceiver receiver(&downlink_, 0, GetParam(), true, true); 73 PacketReceiver receiver(&downlink_, 0, GetParam(), true, true);
74 ASSERT_TRUE(filter.Init(test::ResourcePath("verizon4g-downlink", "rx"))); 74 ASSERT_TRUE(filter.Init(test::ResourcePath("verizon4g-downlink", "rx")));
75 RunFor(22 * 60 * 1000); 75 RunFor(22 * 60 * 1000);
76 } 76 }
77 77
78 TEST_P(BweSimulation, Choke1000kbps500kbps1000kbpsBiDirectional) { 78 TEST_P(BweSimulation, Choke1000kbps500kbps1000kbpsBiDirectional) {
79 const int kFlowIds[] = {0, 1}; 79 const int kFlowIds[] = {0, 1};
80 const size_t kNumFlows = sizeof(kFlowIds) / sizeof(kFlowIds[0]); 80 const size_t kNumFlows = sizeof(kFlowIds) / sizeof(kFlowIds[0]);
81 81
82 AdaptiveVideoSource source(kFlowIds[0], 30, 300, 0, 0); 82 AdaptiveVideoSource source(kFlowIds[0], 30, 300, 0, 0);
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 RunChoke(GetParam(), capacities_kbps); 485 RunChoke(GetParam(), capacities_kbps);
486 486
487 BweTest gcc_test(false); 487 BweTest gcc_test(false);
488 gcc_test.RunChoke(kSendSideEstimator, capacities_kbps); 488 gcc_test.RunChoke(kSendSideEstimator, capacities_kbps);
489 } 489 }
490 490
491 } // namespace bwe 491 } // namespace bwe
492 } // namespace testing 492 } // namespace testing
493 } // namespace webrtc 493 } // namespace webrtc
494 494
OLDNEW
« no previous file with comments | « webrtc/api/rtcerror.h ('k') | webrtc/modules/remote_bitrate_estimator/test/bwe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698