Chromium Code Reviews| 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 |
| 10 #include <memory> | |
|
danakj
2016/04/22 22:47:38
unused
dcheng
2016/04/22 23:13:21
Done.
| |
| 11 | |
| 8 #include "base/macros.h" | 12 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 11 #include "base/synchronization/waitable_event.h" | 14 #include "base/synchronization/waitable_event.h" |
| 12 #include "base/win/scoped_co_mem.h" | 15 #include "base/win/scoped_co_mem.h" |
| 13 #include "base/win/scoped_com_initializer.h" | 16 #include "base/win/scoped_com_initializer.h" |
| 14 #include "base/win/scoped_handle.h" | 17 #include "base/win/scoped_handle.h" |
| 15 #include "media/audio/audio_manager_base.h" | 18 #include "media/audio/audio_manager_base.h" |
| 16 #include "media/audio/audio_unittest_util.h" | 19 #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" | 20 #include "testing/gmock/include/gmock/gmock.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 20 | 22 |
| 21 using base::win::ScopedCOMInitializer; | 23 using base::win::ScopedCOMInitializer; |
| 22 | 24 |
| 23 namespace media { | 25 namespace media { |
| 24 | 26 |
| 25 class CoreAudioUtilWinTest : public ::testing::Test { | 27 class CoreAudioUtilWinTest : public ::testing::Test { |
| 26 protected: | 28 protected: |
| 27 // The tests must run on a COM thread. | 29 // The tests must run on a COM thread. |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 503 } | 505 } |
| 504 | 506 |
| 505 TEST_F(CoreAudioUtilWinTest, GetDefaultOutputDeviceID) { | 507 TEST_F(CoreAudioUtilWinTest, GetDefaultOutputDeviceID) { |
| 506 ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable()); | 508 ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable()); |
| 507 | 509 |
| 508 std::string default_device_id(CoreAudioUtil::GetDefaultOutputDeviceID()); | 510 std::string default_device_id(CoreAudioUtil::GetDefaultOutputDeviceID()); |
| 509 EXPECT_FALSE(default_device_id.empty()); | 511 EXPECT_FALSE(default_device_id.empty()); |
| 510 } | 512 } |
| 511 | 513 |
| 512 } // namespace media | 514 } // namespace media |
| OLD | NEW |