OLD | NEW |
1 /* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 /* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 * | 2 * |
3 * Use of this source code is governed by a BSD-style license | 3 * Use of this source code is governed by a BSD-style license |
4 * that can be found in the LICENSE file in the root of the source | 4 * that can be found in the LICENSE file in the root of the source |
5 * tree. An additional intellectual property rights grant can be found | 5 * tree. An additional intellectual property rights grant can be found |
6 * in the file PATENTS. All contributing project authors may | 6 * in the file PATENTS. All contributing project authors may |
7 * be found in the AUTHORS file in the root of the source tree. | 7 * be found in the AUTHORS file in the root of the source tree. |
8 */ | 8 */ |
9 | 9 |
10 #include "webrtc/modules/video_coding/jitter_estimator.h" | 10 #include "webrtc/modules/video_coding/jitter_estimator.h" |
11 | 11 |
| 12 #include "webrtc/system_wrappers/include/clock.h" |
12 #include "webrtc/test/gtest.h" | 13 #include "webrtc/test/gtest.h" |
13 #include "webrtc/system_wrappers/include/clock.h" | |
14 | 14 |
15 namespace webrtc { | 15 namespace webrtc { |
16 | 16 |
17 class TestEstimator : public VCMJitterEstimator { | 17 class TestEstimator : public VCMJitterEstimator { |
18 public: | 18 public: |
19 explicit TestEstimator(bool exp_enabled) | 19 explicit TestEstimator(bool exp_enabled) |
20 : VCMJitterEstimator(&fake_clock_, 0, 0), | 20 : VCMJitterEstimator(&fake_clock_, 0, 0), |
21 fake_clock_(0), | 21 fake_clock_(0), |
22 exp_enabled_(exp_enabled) {} | 22 exp_enabled_(exp_enabled) {} |
23 | 23 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 } | 151 } |
152 | 152 |
153 gen.Advance(); | 153 gen.Advance(); |
154 } | 154 } |
155 | 155 |
156 EXPECT_NE(regular_iterations, 0); | 156 EXPECT_NE(regular_iterations, 0); |
157 EXPECT_NE(low_rate_iterations, 0); | 157 EXPECT_NE(low_rate_iterations, 0); |
158 EXPECT_LE(low_rate_iterations, regular_iterations); | 158 EXPECT_LE(low_rate_iterations, regular_iterations); |
159 } | 159 } |
160 } | 160 } |
OLD | NEW |