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

Unified Diff: media/capture/video/linux/v4l2_capture_delegate_unittest.cc

Issue 2673373003: getUserMeida: report device starting states (Closed)
Patch Set: address comments on PS#8 Created 3 years, 10 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: media/capture/video/linux/v4l2_capture_delegate_unittest.cc
diff --git a/media/capture/video/linux/v4l2_capture_delegate_unittest.cc b/media/capture/video/linux/v4l2_capture_delegate_unittest.cc
index c5f1080a1e6a6b1200d443f152aa0c7219500724..3d7d8b1165635f81514e91f99baf9ff7d161b9c0 100644
--- a/media/capture/video/linux/v4l2_capture_delegate_unittest.cc
+++ b/media/capture/video/linux/v4l2_capture_delegate_unittest.cc
@@ -187,6 +187,7 @@ class MockVideoCaptureDeviceClient : public VideoCaptureDevice::Client {
void(const tracked_objects::Location& from_here,
const std::string& reason));
MOCK_CONST_METHOD0(GetBufferPoolUtilization, double(void));
+ MOCK_METHOD0(OnStarted, void(void));
};
class V4L2CaptureDelegateTest : public ::testing::Test {
@@ -232,6 +233,7 @@ TEST_F(V4L2CaptureDelegateTest, CreateAndDestroyAndVerifyControls) {
std::unique_ptr<MockVideoCaptureDeviceClient> client(
new MockVideoCaptureDeviceClient());
MockVideoCaptureDeviceClient* client_ptr = client.get();
+ EXPECT_CALL(*client_ptr, OnStarted());
delegate_->AllocateAndStart(320 /* width */, 240 /* height */,
10.0 /* frame_rate */, std::move(client));
« no previous file with comments | « media/capture/video/linux/v4l2_capture_delegate.cc ('k') | media/capture/video/mac/video_capture_device_decklink_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698