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

Side by Side Diff: webrtc/modules/audio_coding/neteq/audio_multi_vector_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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 "webrtc/modules/audio_coding/neteq/audio_multi_vector.h" 11 #include "webrtc/modules/audio_coding/neteq/audio_multi_vector.h"
12 12
13 #include <assert.h> 13 #include <assert.h>
14 #include <stdlib.h> 14 #include <stdlib.h>
15 15
16 #include <string> 16 #include <string>
17 17
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "webrtc/test/gtest.h"
19 #include "webrtc/typedefs.h" 19 #include "webrtc/typedefs.h"
20 20
21 namespace webrtc { 21 namespace webrtc {
22 22
23 // This is a value-parameterized test. The test cases are instantiated with 23 // This is a value-parameterized test. The test cases are instantiated with
24 // different values for the test parameter, which is used to determine the 24 // different values for the test parameter, which is used to determine the
25 // number of channels in the AudioMultiBuffer. Note that it is not possible 25 // number of channels in the AudioMultiBuffer. Note that it is not possible
26 // to combine typed testing with value-parameterized testing, and since the 26 // to combine typed testing with value-parameterized testing, and since the
27 // tests for AudioVector already covers a number of different type parameters, 27 // tests for AudioVector already covers a number of different type parameters,
28 // this test focuses on testing different number of channels, and keeping the 28 // this test focuses on testing different number of channels, and keeping the
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 EXPECT_EQ(vec[0][i], vec[num_channels_ - 1][i]); 314 EXPECT_EQ(vec[0][i], vec[num_channels_ - 1][i]);
315 } 315 }
316 } 316 }
317 317
318 INSTANTIATE_TEST_CASE_P(TestNumChannels, 318 INSTANTIATE_TEST_CASE_P(TestNumChannels,
319 AudioMultiVectorTest, 319 AudioMultiVectorTest,
320 ::testing::Values(static_cast<size_t>(1), 320 ::testing::Values(static_cast<size_t>(1),
321 static_cast<size_t>(2), 321 static_cast<size_t>(2),
322 static_cast<size_t>(5))); 322 static_cast<size_t>(5)));
323 } // namespace webrtc 323 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698