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

Side by Side Diff: webrtc/modules/video_coding/jitter_estimator_tests.cc

Issue 2358993004: Enable the -Wundef warning for clang (Closed)
Patch Set: rebase 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
OLDNEW
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 "testing/gtest/include/gtest/gtest.h" 12 #include "webrtc/test/gtest.h"
13 #include "webrtc/system_wrappers/include/clock.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) {}
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/jitter_buffer_unittest.cc ('k') | webrtc/modules/video_coding/nack_module_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698