| Index: content/renderer/media/webrtc_audio_renderer_unittest.cc
|
| diff --git a/content/renderer/media/webrtc_audio_renderer_unittest.cc b/content/renderer/media/webrtc_audio_renderer_unittest.cc
|
| index 06238dc9053f71f31fa4fd173f0df2d91c6e5d00..781df9627c786f6b6f2129030fa2215dff4aa485 100644
|
| --- a/content/renderer/media/webrtc_audio_renderer_unittest.cc
|
| +++ b/content/renderer/media/webrtc_audio_renderer_unittest.cc
|
| @@ -2,6 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include <string>
|
| #include <vector>
|
|
|
| #include "base/single_thread_task_runner.h"
|
| @@ -40,6 +41,10 @@ class MockAudioOutputIPC : public media::AudioOutputIPC {
|
| MOCK_METHOD0(PauseStream, void());
|
| MOCK_METHOD0(CloseStream, void());
|
| MOCK_METHOD1(SetVolume, void(double volume));
|
| + MOCK_METHOD3(SwitchOutputDevice,
|
| + void(const std::string& device_id,
|
| + const GURL& security_origin,
|
| + int request_id));
|
| };
|
|
|
| class FakeAudioOutputDevice
|
| @@ -55,6 +60,13 @@ class FakeAudioOutputDevice
|
| MOCK_METHOD0(Pause, void());
|
| MOCK_METHOD0(Play, void());
|
| MOCK_METHOD1(SetVolume, bool(double volume));
|
| + MOCK_METHOD0(SwitchOutputDeviceMock, void());
|
| + void SwitchOutputDevice(
|
| + const std::string& device_id,
|
| + const GURL& security_origin,
|
| + scoped_ptr<media::SwitchOutputDeviceCallbackRunner> callback_runner) {
|
| + SwitchOutputDeviceMock();
|
| + }
|
|
|
| protected:
|
| virtual ~FakeAudioOutputDevice() {}
|
|
|