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

Unified Diff: media/audio/audio_output_device_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: media/audio/audio_output_device_unittest.cc
diff --git a/media/audio/audio_output_device_unittest.cc b/media/audio/audio_output_device_unittest.cc
index 363ee3894070eb0c025520c3fa6b05091c273bb3..5f69a091652459d418ffd500042a57bccc6f85de 100644
--- a/media/audio/audio_output_device_unittest.cc
+++ b/media/audio/audio_output_device_unittest.cc
@@ -52,6 +52,11 @@ class MockAudioOutputIPC : public 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));
};
ACTION_P2(SendPendingBytes, socket, pending_bytes) {

Powered by Google App Engine
This is Rietveld 408576698