OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include "media/audio/win/core_audio_util_win.h" |
| 6 |
5 #include <stddef.h> | 7 #include <stddef.h> |
6 #include <stdint.h> | 8 #include <stdint.h> |
7 | 9 |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
11 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
12 #include "base/win/scoped_co_mem.h" | 13 #include "base/win/scoped_co_mem.h" |
13 #include "base/win/scoped_com_initializer.h" | 14 #include "base/win/scoped_com_initializer.h" |
14 #include "base/win/scoped_handle.h" | 15 #include "base/win/scoped_handle.h" |
15 #include "media/audio/audio_manager_base.h" | 16 #include "media/audio/audio_manager_base.h" |
16 #include "media/audio/audio_unittest_util.h" | 17 #include "media/audio/audio_unittest_util.h" |
17 #include "media/audio/win/core_audio_util_win.h" | |
18 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 | 20 |
21 using base::win::ScopedCOMInitializer; | 21 using base::win::ScopedCOMInitializer; |
22 | 22 |
23 namespace media { | 23 namespace media { |
24 | 24 |
25 class CoreAudioUtilWinTest : public ::testing::Test { | 25 class CoreAudioUtilWinTest : public ::testing::Test { |
26 protected: | 26 protected: |
27 // The tests must run on a COM thread. | 27 // The tests must run on a COM thread. |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 } | 503 } |
504 | 504 |
505 TEST_F(CoreAudioUtilWinTest, GetDefaultOutputDeviceID) { | 505 TEST_F(CoreAudioUtilWinTest, GetDefaultOutputDeviceID) { |
506 ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable()); | 506 ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable()); |
507 | 507 |
508 std::string default_device_id(CoreAudioUtil::GetDefaultOutputDeviceID()); | 508 std::string default_device_id(CoreAudioUtil::GetDefaultOutputDeviceID()); |
509 EXPECT_FALSE(default_device_id.empty()); | 509 EXPECT_FALSE(default_device_id.empty()); |
510 } | 510 } |
511 | 511 |
512 } // namespace media | 512 } // namespace media |
OLD | NEW |