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

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

Issue 13616004: Switch event type when a capture device has been stopped from the render process. This make sure th… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed code review comments. Created 7 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
Index: content/browser/renderer_host/media/video_capture_controller_unittest.cc
diff --git a/content/browser/renderer_host/media/video_capture_controller_unittest.cc b/content/browser/renderer_host/media/video_capture_controller_unittest.cc
index 14c8da1343cbbebb8603e09f25ae085056f5ea0d..b4161bba661525c86ed614fec152fc968b97957d 100644
--- a/content/browser/renderer_host/media/video_capture_controller_unittest.cc
+++ b/content/browser/renderer_host/media/video_capture_controller_unittest.cc
@@ -61,7 +61,7 @@ class MockVideoCaptureControllerEventHandler
MOCK_METHOD1(DoBufferCreated, void(const VideoCaptureControllerID&));
MOCK_METHOD1(DoBufferReady, void(const VideoCaptureControllerID&));
MOCK_METHOD1(DoFrameInfo, void(const VideoCaptureControllerID&));
- MOCK_METHOD1(DoPaused, void(const VideoCaptureControllerID&));
+ MOCK_METHOD1(DoEnded, void(const VideoCaptureControllerID&));
virtual void OnError(const VideoCaptureControllerID& id) OVERRIDE {}
virtual void OnBufferCreated(const VideoCaptureControllerID& id,
@@ -86,9 +86,9 @@ class MockVideoCaptureControllerEventHandler
EXPECT_EQ(id, controller_id_);
DoFrameInfo(id);
}
- virtual void OnPaused(const VideoCaptureControllerID& id) OVERRIDE {
+ virtual void OnEnded(const VideoCaptureControllerID& id) OVERRIDE {
EXPECT_EQ(id, controller_id_);
- DoPaused(id);
+ DoEnded(id);
}
scoped_refptr<VideoCaptureController> controller_;
@@ -240,7 +240,7 @@ TEST_F(VideoCaptureControllerTest, StopSession) {
vcm_->video_session_id_,
message_loop_.get()));
EXPECT_CALL(*controller_handler_,
- DoPaused(controller_handler_->controller_id_))
+ DoEnded(controller_handler_->controller_id_))
.Times(1);
controller_->StartCapture(controller_handler_->controller_id_,

Powered by Google App Engine
This is Rietveld 408576698