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

Unified Diff: content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc

Issue 11146008: remove VideoDeviceError and AudioDeviceError for media stream. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
===================================================================
--- content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc (revision 161798)
+++ content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc (working copy)
@@ -51,8 +51,6 @@
void(int routing_id, int request_id, int audio_array_size,
int video_array_size));
MOCK_METHOD2(OnStreamGenerationFailed, void(int routing_id, int request_id));
- MOCK_METHOD2(OnAudioDeviceFailed, void(int routing_id, int index));
- MOCK_METHOD2(OnVideoDeviceFailed, void(int routing_id, int index));
MOCK_METHOD0(GetMediaObserver, content::MediaObserver*());
// Accessor to private functions.
@@ -100,10 +98,6 @@
IPC_MESSAGE_HANDLER(MediaStreamMsg_StreamGenerated, OnStreamGenerated)
IPC_MESSAGE_HANDLER(MediaStreamMsg_StreamGenerationFailed,
OnStreamGenerationFailed)
- IPC_MESSAGE_HANDLER(MediaStreamHostMsg_VideoDeviceFailed,
- OnVideoDeviceFailed)
- IPC_MESSAGE_HANDLER(MediaStreamHostMsg_AudioDeviceFailed,
- OnAudioDeviceFailed)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
EXPECT_TRUE(handled);
@@ -139,22 +133,6 @@
label_= "";
}
- void OnAudioDeviceFailed(const IPC::Message& msg,
- std::string label,
- int index) {
- OnAudioDeviceFailed(msg.routing_id(), index);
- audio_devices_.erase(audio_devices_.begin() + index);
- message_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure());
- }
-
- void OnVideoDeviceFailed(const IPC::Message& msg,
- std::string label,
- int index) {
- OnVideoDeviceFailed(msg.routing_id(), index);
- video_devices_.erase(video_devices_.begin() + index);
- message_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure());
- }
-
MessageLoop* message_loop_;
MediaStreamManager* manager_;
};

Powered by Google App Engine
This is Rietveld 408576698