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

Side by Side Diff: webrtc/modules/audio_processing/config_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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 #include "webrtc/modules/audio_processing/include/config.h" 10 #include "webrtc/modules/audio_processing/include/config.h"
11 11
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "webrtc/test/gtest.h"
13 13
14 namespace webrtc { 14 namespace webrtc {
15 namespace { 15 namespace {
16 16
17 struct MyExperiment { 17 struct MyExperiment {
18 static const ConfigOptionID identifier = ConfigOptionID::kMyExperimentForTest; 18 static const ConfigOptionID identifier = ConfigOptionID::kMyExperimentForTest;
19 static const int kDefaultFactor; 19 static const int kDefaultFactor;
20 static const int kDefaultOffset; 20 static const int kDefaultOffset;
21 21
22 MyExperiment() 22 MyExperiment()
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 } 74 }
75 }; 75 };
76 76
77 TEST(Config, SupportsPolymorphism) { 77 TEST(Config, SupportsPolymorphism) {
78 Config config; 78 Config config;
79 config.Set<Algo1_CostFunction>(new SqrCost()); 79 config.Set<Algo1_CostFunction>(new SqrCost());
80 EXPECT_EQ(25, config.Get<Algo1_CostFunction>().cost(5)); 80 EXPECT_EQ(25, config.Get<Algo1_CostFunction>().cost(5));
81 } 81 }
82 } // namespace 82 } // namespace
83 } // namespace webrtc 83 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698