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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 uint32_t play_count_; | 135 uint32_t play_count_; |
136 }; | 136 }; |
137 | 137 |
138 class AudioDeviceAPITest: public testing::Test { | 138 class AudioDeviceAPITest: public testing::Test { |
139 protected: | 139 protected: |
140 AudioDeviceAPITest() {} | 140 AudioDeviceAPITest() {} |
141 | 141 |
142 virtual ~AudioDeviceAPITest() {} | 142 virtual ~AudioDeviceAPITest() {} |
143 | 143 |
144 static void SetUpTestCase() { | 144 static void SetUpTestCase() { |
145 process_thread_ = | 145 process_thread_ = ProcessThread::Create("ProcessThread"); |
146 rtc::ScopedToUnique(ProcessThread::Create("ProcessThread")); | |
147 process_thread_->Start(); | 146 process_thread_->Start(); |
148 | 147 |
149 // Windows: | 148 // Windows: |
150 // if (WEBRTC_WINDOWS_CORE_AUDIO_BUILD) | 149 // if (WEBRTC_WINDOWS_CORE_AUDIO_BUILD) |
151 // user can select between default (Core) or Wave | 150 // user can select between default (Core) or Wave |
152 // else | 151 // else |
153 // user can select between default (Wave) or Wave | 152 // user can select between default (Wave) or Wave |
154 const int32_t kId = 444; | 153 const int32_t kId = 444; |
155 | 154 |
156 #if defined(_WIN32) | 155 #if defined(_WIN32) |
(...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1799 // TODO(kjellander): Fix so these tests pass on Mac. | 1798 // TODO(kjellander): Fix so these tests pass on Mac. |
1800 #if !defined(WEBRTC_MAC) | 1799 #if !defined(WEBRTC_MAC) |
1801 EXPECT_EQ(0, audio_device_->InitPlayout()); | 1800 EXPECT_EQ(0, audio_device_->InitPlayout()); |
1802 EXPECT_EQ(0, audio_device_->StartPlayout()); | 1801 EXPECT_EQ(0, audio_device_->StartPlayout()); |
1803 #endif | 1802 #endif |
1804 | 1803 |
1805 EXPECT_EQ(-1, audio_device_->GetLoudspeakerStatus(&loudspeakerOn)); | 1804 EXPECT_EQ(-1, audio_device_->GetLoudspeakerStatus(&loudspeakerOn)); |
1806 #endif | 1805 #endif |
1807 EXPECT_EQ(0, audio_device_->StopPlayout()); | 1806 EXPECT_EQ(0, audio_device_->StopPlayout()); |
1808 } | 1807 } |
OLD | NEW |