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

Side by Side Diff: webrtc/modules/audio_device/test/audio_device_test_api.cc

Issue 1337003003: Add a name to the ProcessThread constructor. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Comments addressed. Created 5 years, 3 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
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698