| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 10 #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/test/simple_test_tick_clock.h" | 12 #include "base/test/simple_test_tick_clock.h" |
| 12 #include "base/win/scoped_com_initializer.h" | 13 #include "base/win/scoped_com_initializer.h" |
| 13 #include "media/audio/audio_manager.h" | 14 #include "media/audio/audio_manager.h" |
| 14 #include "media/audio/audio_unittest_util.h" | 15 #include "media/audio/audio_unittest_util.h" |
| 15 #include "media/audio/win/audio_device_listener_win.h" | 16 #include "media/audio/win/audio_device_listener_win.h" |
| 16 #include "media/audio/win/core_audio_util_win.h" | 17 #include "media/audio/win/core_audio_util_win.h" |
| 17 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 EXPECT_CALL(*this, OnDeviceChange()).Times(1); | 101 EXPECT_CALL(*this, OnDeviceChange()).Times(1); |
| 101 ASSERT_TRUE(SimulateDefaultOutputDeviceChange(kFirstTestDevice)); | 102 ASSERT_TRUE(SimulateDefaultOutputDeviceChange(kFirstTestDevice)); |
| 102 | 103 |
| 103 testing::Mock::VerifyAndClear(this); | 104 testing::Mock::VerifyAndClear(this); |
| 104 AdvanceLastDeviceChangeTime(); | 105 AdvanceLastDeviceChangeTime(); |
| 105 EXPECT_CALL(*this, OnDeviceChange()).Times(1); | 106 EXPECT_CALL(*this, OnDeviceChange()).Times(1); |
| 106 ASSERT_TRUE(SimulateNullDefaultOutputDeviceChange()); | 107 ASSERT_TRUE(SimulateNullDefaultOutputDeviceChange()); |
| 107 } | 108 } |
| 108 | 109 |
| 109 } // namespace media | 110 } // namespace media |
| OLD | NEW |