OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "base/logging.h" | |
6 #include "base/memory/scoped_ptr.h" | |
7 #include "media/audio/audio_manager.h" | |
8 #include "testing/gtest/include/gtest/gtest.h" | |
9 | |
10 namespace media { | |
11 | |
12 class AudioManagerTest : public ::testing::Test { | |
13 protected: | |
14 AudioManagerTest() : audio_manager_(AudioManager::Create()) {} | |
15 | |
16 scoped_ptr<AudioManager> audio_manager_; | |
17 }; | |
18 | |
19 // TODO(joi): Remove guards once implemented for all platforms. | |
20 #if defined(USE_PULSEAUDIO) | |
21 TEST_F(AudioManagerTest, GetAudioOutputDeviceNames) { | |
tommi (sloooow) - chröme
2013/09/03 15:57:15
What about putting this with the audiomanagerbase
Jói
2013/09/04 09:11:04
There is no audio_manager_base_unittests.cc or any
tommi (sloooow) - chröme
2013/09/04 10:48:11
Sorry, what I was looking at were the platform spe
| |
22 AudioDeviceNames device_names; | |
23 audio_manager_->GetAudioOutputDeviceNames(&device_names); | |
24 | |
25 VLOG(2) << "Got " << device_names.size() << " audio output devices."; | |
26 for (AudioDeviceNames::iterator it = device_names.begin(); | |
27 it != device_names.end(); | |
28 ++it) { | |
29 VLOG(2) << "Device ID(" << it->unique_id << "), label: " << it->device_name; | |
tommi (sloooow) - chröme
2013/09/03 15:57:15
expect neither to be empty?
Jói
2013/09/04 09:11:04
Done.
| |
30 } | |
31 } | |
32 #endif // defined(USE_PULSEAUDIO) | |
33 | |
34 } // namespace media | |
OLD | NEW |