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

Side by Side Diff: webrtc/modules/audio_coding/neteq/test/neteq_performance_unittest.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 /* 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 "testing/gtest/include/gtest/gtest.h" 11 #include "webrtc/test/gtest.h"
12 #include "webrtc/modules/audio_coding/neteq/tools/neteq_performance_test.h" 12 #include "webrtc/modules/audio_coding/neteq/tools/neteq_performance_test.h"
13 #include "webrtc/test/testsupport/perf_test.h" 13 #include "webrtc/test/testsupport/perf_test.h"
14 #include "webrtc/typedefs.h" 14 #include "webrtc/typedefs.h"
15 15
16 // Runs a test with 10% packet losses and 10% clock drift, to exercise 16 // Runs a test with 10% packet losses and 10% clock drift, to exercise
17 // both loss concealment and time-stretching code. 17 // both loss concealment and time-stretching code.
18 TEST(NetEqPerformanceTest, Run) { 18 TEST(NetEqPerformanceTest, Run) {
19 const int kSimulationTimeMs = 10000000; 19 const int kSimulationTimeMs = 10000000;
20 const int kLossPeriod = 10; // Drop every 10th packet. 20 const int kLossPeriod = 10; // Drop every 10th packet.
21 const double kDriftFactor = 0.1; 21 const double kDriftFactor = 0.1;
(...skipping 10 matching lines...) Expand all
32 TEST(NetEqPerformanceTest, RunClean) { 32 TEST(NetEqPerformanceTest, RunClean) {
33 const int kSimulationTimeMs = 10000000; 33 const int kSimulationTimeMs = 10000000;
34 const int kLossPeriod = 0; // No losses. 34 const int kLossPeriod = 0; // No losses.
35 const double kDriftFactor = 0.0; // No clock drift. 35 const double kDriftFactor = 0.0; // No clock drift.
36 int64_t runtime = webrtc::test::NetEqPerformanceTest::Run( 36 int64_t runtime = webrtc::test::NetEqPerformanceTest::Run(
37 kSimulationTimeMs, kLossPeriod, kDriftFactor); 37 kSimulationTimeMs, kLossPeriod, kDriftFactor);
38 ASSERT_GT(runtime, 0); 38 ASSERT_GT(runtime, 0);
39 webrtc::test::PrintResult( 39 webrtc::test::PrintResult(
40 "neteq_performance", "", "0_pl_0_drift", runtime, "ms", true); 40 "neteq_performance", "", "0_pl_0_drift", runtime, "ms", true);
41 } 41 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/test/RTPtimeshift.cc ('k') | webrtc/modules/audio_coding/neteq/tick_timer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698