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

Side by Side Diff: webrtc/modules/audio_device/test/audio_device_test_api.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 <math.h> 11 #include <math.h>
12 #include <stdio.h> 12 #include <stdio.h>
13 #include <string.h> 13 #include <string.h>
14 14
15 #include <memory> 15 #include <memory>
16 16
17 #include "webrtc/modules/audio_device/test/audio_device_test_defines.h" 17 #include "webrtc/modules/audio_device/test/audio_device_test_defines.h"
18 18
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "webrtc/test/gtest.h"
20 #include "webrtc/test/testsupport/fileutils.h" 20 #include "webrtc/test/testsupport/fileutils.h"
21 21
22 #include "webrtc/modules/audio_device/audio_device_config.h" 22 #include "webrtc/modules/audio_device/audio_device_config.h"
23 #include "webrtc/modules/audio_device/audio_device_impl.h" 23 #include "webrtc/modules/audio_device/audio_device_impl.h"
24 #include "webrtc/system_wrappers/include/sleep.h" 24 #include "webrtc/system_wrappers/include/sleep.h"
25 25
26 // Helper functions 26 // Helper functions
27 #if defined(ANDROID) 27 #if defined(ANDROID)
28 char filenameStr[2][256] = 28 char filenameStr[2][256] =
29 { {0}, 29 { {0},
(...skipping 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after
1811 // TODO(kjellander): Fix so these tests pass on Mac. 1811 // TODO(kjellander): Fix so these tests pass on Mac.
1812 #if !defined(WEBRTC_MAC) 1812 #if !defined(WEBRTC_MAC)
1813 EXPECT_EQ(0, audio_device_->InitPlayout()); 1813 EXPECT_EQ(0, audio_device_->InitPlayout());
1814 EXPECT_EQ(0, audio_device_->StartPlayout()); 1814 EXPECT_EQ(0, audio_device_->StartPlayout());
1815 #endif 1815 #endif
1816 1816
1817 EXPECT_EQ(-1, audio_device_->GetLoudspeakerStatus(&loudspeakerOn)); 1817 EXPECT_EQ(-1, audio_device_->GetLoudspeakerStatus(&loudspeakerOn));
1818 #endif 1818 #endif
1819 EXPECT_EQ(0, audio_device_->StopPlayout()); 1819 EXPECT_EQ(0, audio_device_->StopPlayout());
1820 } 1820 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/mock_audio_device_buffer.h ('k') | webrtc/modules/audio_mixer/test/audio_mixer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698