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

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

Issue 2400443006: VideoCapture: moar VideoCapture renderer-->host messages to mojo, part 3 (Closed)
Patch Set: minor rebase Created 4 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
« no previous file with comments | « content/renderer/media/video_capture_message_filter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/video_capture_message_filter_unittest.cc
diff --git a/content/renderer/media/video_capture_message_filter_unittest.cc b/content/renderer/media/video_capture_message_filter_unittest.cc
index 05845bf3232d2a3cf03549ea06cdb0820ca14a8b..4082bddc1994ba3048a28d0ab3edf563cefa3529 100644
--- a/content/renderer/media/video_capture_message_filter_unittest.cc
+++ b/content/renderer/media/video_capture_message_filter_unittest.cc
@@ -50,10 +50,6 @@ class MockVideoCaptureDelegate : public VideoCaptureMessageFilter::Delegate {
const gfx::Size& coded_size,
const gfx::Rect& visible_rect));
MOCK_METHOD1(OnStateChanged, void(VideoCaptureState state));
- MOCK_METHOD1(OnDeviceSupportedFormatsEnumerated,
- void(const media::VideoCaptureFormats& formats));
- MOCK_METHOD1(OnDeviceFormatsInUseReceived,
- void(const media::VideoCaptureFormats& formats_in_use));
void OnDelegateAdded(int32_t device_id) override {
ASSERT_TRUE(device_id != 0);
@@ -189,35 +185,4 @@ TEST(VideoCaptureMessageFilterTest, Delegates) {
VIDEO_CAPTURE_STATE_ENDED));
}
-TEST(VideoCaptureMessageFilterTest, GetSomeDeviceSupportedFormats) {
- scoped_refptr<VideoCaptureMessageFilter> filter(
- new VideoCaptureMessageFilter());
-
- IPC::TestSink channel;
- filter->OnFilterAdded(&channel);
- MockVideoCaptureDelegate delegate;
- filter->AddDelegate(&delegate);
- ASSERT_EQ(1, delegate.device_id());
-
- EXPECT_CALL(delegate, OnDeviceSupportedFormatsEnumerated(_));
- media::VideoCaptureFormats supported_formats;
- filter->OnMessageReceived(VideoCaptureMsg_DeviceSupportedFormatsEnumerated(
- delegate.device_id(), supported_formats));
-}
-
-TEST(VideoCaptureMessageFilterTest, GetSomeDeviceFormatInUse) {
- scoped_refptr<VideoCaptureMessageFilter> filter(
- new VideoCaptureMessageFilter());
-
- IPC::TestSink channel;
- filter->OnFilterAdded(&channel);
- MockVideoCaptureDelegate delegate;
- filter->AddDelegate(&delegate);
- ASSERT_EQ(1, delegate.device_id());
-
- EXPECT_CALL(delegate, OnDeviceFormatsInUseReceived(_));
- media::VideoCaptureFormats formats_in_use;
- filter->OnMessageReceived(VideoCaptureMsg_DeviceFormatsInUseReceived(
- delegate.device_id(), formats_in_use));
-}
} // namespace content
« no previous file with comments | « content/renderer/media/video_capture_message_filter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698