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

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

Issue 242013002: Refactor video capturing code in the render process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge again :( Created 6 years, 8 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/common/media/video_capture.h ('k') | content/renderer/media/media_stream_video_capturer_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_video_capture_source_unittest.cc
diff --git a/content/renderer/media/media_stream_video_capture_source_unittest.cc b/content/renderer/media/media_stream_video_capture_source_unittest.cc
index ea203a2844d3592ff91bf694376abe47ed617645..f7210703bb09c8084e8351b4caaaf02ce3019270 100644
--- a/content/renderer/media/media_stream_video_capture_source_unittest.cc
+++ b/content/renderer/media/media_stream_video_capture_source_unittest.cc
@@ -17,11 +17,11 @@ class MockVideoCapturerDelegate : public VideoCapturerDelegate {
explicit MockVideoCapturerDelegate(const StreamDeviceInfo& device_info)
: VideoCapturerDelegate(device_info) {}
- MOCK_METHOD3(StartDeliver,
+ MOCK_METHOD3(StartCapture,
void(const media::VideoCaptureParams& params,
- const NewFrameCallback& new_frame_callback,
+ const VideoCaptureDeliverFrameCB& new_frame_callback,
const StartedCallback& started_callback));
- MOCK_METHOD0(StopDeliver,void());
+ MOCK_METHOD0(StopCapture,void());
private:
virtual ~MockVideoCapturerDelegate() {}
@@ -68,13 +68,13 @@ TEST_F(MediaStreamVideoCapturerSourceTest, TabCaptureAllowResolutionChange) {
device_info.device.type = MEDIA_TAB_VIDEO_CAPTURE;
InitWithDeviceInfo(device_info);
- EXPECT_CALL(*delegate_, StartDeliver(
+ EXPECT_CALL(*delegate_, StartCapture(
testing::Field(&media::VideoCaptureParams::allow_resolution_change, true),
testing::_,
testing::_)).Times(1);
blink::WebMediaStreamTrack track = StartSource();
// When the track goes out of scope, the source will be stopped.
- EXPECT_CALL(*delegate_, StopDeliver());
+ EXPECT_CALL(*delegate_, StopCapture());
}
TEST_F(MediaStreamVideoCapturerSourceTest,
@@ -83,13 +83,13 @@ TEST_F(MediaStreamVideoCapturerSourceTest,
device_info.device.type = MEDIA_DESKTOP_VIDEO_CAPTURE;
InitWithDeviceInfo(device_info);
- EXPECT_CALL(*delegate_, StartDeliver(
+ EXPECT_CALL(*delegate_, StartCapture(
testing::Field(&media::VideoCaptureParams::allow_resolution_change, true),
testing::_,
testing::_)).Times(1);
blink::WebMediaStreamTrack track = StartSource();
// When the track goes out of scope, the source will be stopped.
- EXPECT_CALL(*delegate_, StopDeliver());
+ EXPECT_CALL(*delegate_, StopCapture());
}
} // namespace content
« no previous file with comments | « content/common/media/video_capture.h ('k') | content/renderer/media/media_stream_video_capturer_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698