Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: content/renderer/media/webrtc_audio_renderer_unittest.cc

Issue 1122393004: Add support for switching the audio output device for HTMLMediaElements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes to MediaPlayers so that they invoke callbacks in the correct threads. First complete implem… Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 a0fbba3855f8031479bbf7f84b53d2f242df08cd..5fcdf6e4cc1753874de6998f3afa566f9b706afe 100644
--- a/content/renderer/media/webrtc_audio_renderer_unittest.cc
+++ b/content/renderer/media/webrtc_audio_renderer_unittest.cc
@@ -39,6 +39,11 @@ class MockAudioOutputIPC : public media::AudioOutputIPC {
MOCK_METHOD0(PauseStream, void());
MOCK_METHOD0(CloseStream, void());
MOCK_METHOD1(SetVolume, void(double volume));
+ MOCK_METHOD4(SwitchDevice,
+ void(const std::string& device_id,
+ const GURL& security_origin,
+ int request_id,
+ const base::Callback<void(int)>& callback));
};
class FakeAudioOutputDevice
@@ -54,6 +59,10 @@ class FakeAudioOutputDevice
MOCK_METHOD0(Pause, void());
MOCK_METHOD0(Play, void());
MOCK_METHOD1(SetVolume, bool(double volume));
+ MOCK_METHOD3(SwitchOutputDevice,
+ void(const std::string& device_id,
+ const GURL& security_origin,
+ const base::Callback<void(int)>& callback));
protected:
virtual ~FakeAudioOutputDevice() {}

Powered by Google App Engine
This is Rietveld 408576698