OLD | NEW |
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 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 uint32_t play_count_; | 156 uint32_t play_count_; |
157 }; | 157 }; |
158 | 158 |
159 class AudioDeviceAPITest: public testing::Test { | 159 class AudioDeviceAPITest: public testing::Test { |
160 protected: | 160 protected: |
161 AudioDeviceAPITest() {} | 161 AudioDeviceAPITest() {} |
162 | 162 |
163 virtual ~AudioDeviceAPITest() {} | 163 virtual ~AudioDeviceAPITest() {} |
164 | 164 |
165 static void SetUpTestCase() { | 165 static void SetUpTestCase() { |
166 process_thread_ = ProcessThread::Create(); | 166 process_thread_ = ProcessThread::Create("ProcessThread"); |
167 process_thread_->Start(); | 167 process_thread_->Start(); |
168 | 168 |
169 // Windows: | 169 // Windows: |
170 // if (WEBRTC_WINDOWS_CORE_AUDIO_BUILD) | 170 // if (WEBRTC_WINDOWS_CORE_AUDIO_BUILD) |
171 // user can select between default (Core) or Wave | 171 // user can select between default (Core) or Wave |
172 // else | 172 // else |
173 // user can select between default (Wave) or Wave | 173 // user can select between default (Wave) or Wave |
174 const int32_t kId = 444; | 174 const int32_t kId = 444; |
175 | 175 |
176 #if defined(_WIN32) | 176 #if defined(_WIN32) |
(...skipping 1645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1822 // TODO(kjellander): Fix so these tests pass on Mac. | 1822 // TODO(kjellander): Fix so these tests pass on Mac. |
1823 #if !defined(WEBRTC_MAC) | 1823 #if !defined(WEBRTC_MAC) |
1824 EXPECT_EQ(0, audio_device_->InitPlayout()); | 1824 EXPECT_EQ(0, audio_device_->InitPlayout()); |
1825 EXPECT_EQ(0, audio_device_->StartPlayout()); | 1825 EXPECT_EQ(0, audio_device_->StartPlayout()); |
1826 #endif | 1826 #endif |
1827 | 1827 |
1828 EXPECT_EQ(-1, audio_device_->GetLoudspeakerStatus(&loudspeakerOn)); | 1828 EXPECT_EQ(-1, audio_device_->GetLoudspeakerStatus(&loudspeakerOn)); |
1829 #endif | 1829 #endif |
1830 EXPECT_EQ(0, audio_device_->StopPlayout()); | 1830 EXPECT_EQ(0, audio_device_->StopPlayout()); |
1831 } | 1831 } |
OLD | NEW |