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

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

Issue 2398123002: Make bwe_simulator a separate test target that doesnt run on the bots (Closed)
Patch Set: Created 4 years, 2 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/modules/remote_bitrate_estimator/BUILD.gn ('k') | no next file » | 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
11 #include <memory> 11 #include <memory>
12 12
13 #include "webrtc/base/constructormagic.h" 13 #include "webrtc/base/constructormagic.h"
14 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat or.h" 14 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat or.h"
15 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test.h" 15 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test.h"
16 #include "webrtc/modules/remote_bitrate_estimator/test/packet_receiver.h" 16 #include "webrtc/modules/remote_bitrate_estimator/test/packet_receiver.h"
17 #include "webrtc/modules/remote_bitrate_estimator/test/packet_sender.h" 17 #include "webrtc/modules/remote_bitrate_estimator/test/packet_sender.h"
18 #include "webrtc/test/gtest.h" 18 #include "webrtc/test/gtest.h"
19 #include "webrtc/test/testsupport/fileutils.h" 19 #include "webrtc/test/testsupport/fileutils.h"
20 20
21 21
22 namespace webrtc { 22 namespace webrtc {
23 namespace testing { 23 namespace testing {
24 namespace bwe { 24 namespace bwe {
25 #if BWE_TEST_LOGGING_COMPILE_TIME_ENABLE 25
26 // This test fixture is used to instantiate tests running with adaptive video 26 // This test fixture is used to instantiate tests running with adaptive video
27 // senders. 27 // senders.
28 class BweSimulation : public BweTest, 28 class BweSimulation : public BweTest,
29 public ::testing::TestWithParam<BandwidthEstimatorType> { 29 public ::testing::TestWithParam<BandwidthEstimatorType> {
30 public: 30 public:
31 BweSimulation() 31 BweSimulation()
32 : BweTest(), random_(Clock::GetRealTimeClock()->TimeInMicroseconds()) {} 32 : BweTest(), random_(Clock::GetRealTimeClock()->TimeInMicroseconds()) {}
33 virtual ~BweSimulation() {} 33 virtual ~BweSimulation() {}
34 34
35 protected: 35 protected:
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 438
439 TEST_P(BweSimulation, GccComparisonChoke) { 439 TEST_P(BweSimulation, GccComparisonChoke) {
440 int array[] = {1000, 500, 1000}; 440 int array[] = {1000, 500, 1000};
441 std::vector<int> capacities_kbps(array, array + 3); 441 std::vector<int> capacities_kbps(array, array + 3);
442 RunChoke(GetParam(), capacities_kbps); 442 RunChoke(GetParam(), capacities_kbps);
443 443
444 BweTest gcc_test(false); 444 BweTest gcc_test(false);
445 gcc_test.RunChoke(kFullSendSideEstimator, capacities_kbps); 445 gcc_test.RunChoke(kFullSendSideEstimator, capacities_kbps);
446 } 446 }
447 447
448 #endif // BWE_TEST_LOGGING_COMPILE_TIME_ENABLE
449 } // namespace bwe 448 } // namespace bwe
450 } // namespace testing 449 } // namespace testing
451 } // namespace webrtc 450 } // namespace webrtc
452 451
OLDNEW
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698