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

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

Issue 1184473002: Add support for the audio-output-device switching IPC mechanism to the renderer lower layers (media… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build dependencies for audio_unittests Created 5 years, 6 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 06238dc9053f71f31fa4fd173f0df2d91c6e5d00..bf5e3179d7043c0018b357eb2b1e6438b232727e 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,10 @@ class FakeAudioOutputDevice
MOCK_METHOD0(Pause, void());
MOCK_METHOD0(Play, void());
MOCK_METHOD1(SetVolume, bool(double volume));
+ MOCK_METHOD3(SwitchOutputDevice,
+ void(const std::string&,
+ const GURL& security_origin,
+ const media::SwitchOutputDeviceCB& callback));
protected:
virtual ~FakeAudioOutputDevice() {}
« no previous file with comments | « content/renderer/media/audio_message_filter_unittest.cc ('k') | content/renderer/pepper/pepper_platform_audio_output.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698