| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
| 6 #include "base/threading/platform_thread.h" | 6 #include "base/threading/platform_thread.h" |
| 7 #include "media/audio/audio_output_dispatcher.h" | 7 #include "media/audio/audio_output_dispatcher.h" |
| 8 #include "media/audio/audio_output_proxy.h" | 8 #include "media/audio/audio_output_proxy.h" |
| 9 #include "media/audio/audio_manager.h" | 9 #include "media/audio/audio_manager.h" |
| 10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 MOCK_METHOD0(Init, void()); | 38 MOCK_METHOD0(Init, void()); |
| 39 MOCK_METHOD0(Cleanup, void()); | 39 MOCK_METHOD0(Cleanup, void()); |
| 40 MOCK_METHOD0(HasAudioOutputDevices, bool()); | 40 MOCK_METHOD0(HasAudioOutputDevices, bool()); |
| 41 MOCK_METHOD0(HasAudioInputDevices, bool()); | 41 MOCK_METHOD0(HasAudioInputDevices, bool()); |
| 42 MOCK_METHOD0(GetAudioInputDeviceModel, string16()); | 42 MOCK_METHOD0(GetAudioInputDeviceModel, string16()); |
| 43 MOCK_METHOD1(MakeAudioOutputStream, AudioOutputStream*( | 43 MOCK_METHOD1(MakeAudioOutputStream, AudioOutputStream*( |
| 44 const AudioParameters& params)); | 44 const AudioParameters& params)); |
| 45 MOCK_METHOD1(MakeAudioOutputStreamProxy, AudioOutputStream*( | 45 MOCK_METHOD1(MakeAudioOutputStreamProxy, AudioOutputStream*( |
| 46 const AudioParameters& params)); | 46 const AudioParameters& params)); |
| 47 MOCK_METHOD1(MakeAudioInputStream, AudioInputStream*( | 47 MOCK_METHOD2(MakeAudioInputStream, AudioInputStream*( |
| 48 const AudioParameters& params)); | 48 const AudioParameters& params, const std::string& device_uid)); |
| 49 MOCK_METHOD0(MuteAll, void()); | 49 MOCK_METHOD0(MuteAll, void()); |
| 50 MOCK_METHOD0(UnMuteAll, void()); | 50 MOCK_METHOD0(UnMuteAll, void()); |
| 51 MOCK_METHOD0(CanShowAudioInputSettings, bool()); | 51 MOCK_METHOD0(CanShowAudioInputSettings, bool()); |
| 52 MOCK_METHOD0(ShowAudioInputSettings, void()); | 52 MOCK_METHOD0(ShowAudioInputSettings, void()); |
| 53 MOCK_METHOD0(GetMessageLoop, MessageLoop*()); | 53 MOCK_METHOD0(GetMessageLoop, MessageLoop*()); |
| 54 MOCK_METHOD1(GetAudioInputDeviceNames, void( | 54 MOCK_METHOD1(GetAudioInputDeviceNames, void( |
| 55 media::AudioDeviceNames* device_name)); | 55 media::AudioDeviceNames* device_name)); |
| 56 MOCK_METHOD0(IsRecordingInProcess, bool()); | 56 MOCK_METHOD0(IsRecordingInProcess, bool()); |
| 57 }; | 57 }; |
| 58 | 58 |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 | 348 |
| 349 EXPECT_CALL(callback_, OnError(_, _)) | 349 EXPECT_CALL(callback_, OnError(_, _)) |
| 350 .Times(1); | 350 .Times(1); |
| 351 | 351 |
| 352 proxy->Start(&callback_); | 352 proxy->Start(&callback_); |
| 353 | 353 |
| 354 Mock::VerifyAndClear(&callback_); | 354 Mock::VerifyAndClear(&callback_); |
| 355 | 355 |
| 356 proxy->Close(); | 356 proxy->Close(); |
| 357 } | 357 } |
| OLD | NEW |