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

Unified Diff: media/video/capture/video_capture_device_unittest.cc

Issue 1064963002: VideoCapture: add support for GpuMemoryBuffer allocation and lifetime mgmt in VideoCaptureBufferPool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: media/video/capture/video_capture_device_unittest.cc
diff --git a/media/video/capture/video_capture_device_unittest.cc b/media/video/capture/video_capture_device_unittest.cc
index a01fbab932daef40db78b96433e7e2c3529a5f93..0c242e911f7e0309f18676556190454f1af108db 100644
--- a/media/video/capture/video_capture_device_unittest.cc
+++ b/media/video/capture/video_capture_device_unittest.cc
@@ -77,6 +77,10 @@ class MockClient : public VideoCaptureDevice::Client {
const VideoCaptureFormat& frame_format,
int clockwise_rotation,
const base::TimeTicks& timestamp));
+ MOCK_METHOD3(OnIncomingCapturedBuffer,
+ void(const scoped_refptr<Buffer>& buffer,
+ const VideoCaptureFormat& frame_format,
+ const base::TimeTicks& timestamp));
MOCK_METHOD3(OnIncomingCapturedVideoFrame,
void(const scoped_refptr<Buffer>& buffer,
const scoped_refptr<VideoFrame>& frame,
@@ -140,6 +144,7 @@ class VideoCaptureDeviceTest : public testing::Test {
EXPECT_CALL(*client_, OnIncomingCapturedYuvData(_,_,_,_,_,_,_,_,_))
.Times(0);
EXPECT_CALL(*client_, ReserveOutputBuffer(_,_)).Times(0);
+ EXPECT_CALL(*client_, OnIncomingCapturedBuffer(_,_,_)).Times(0);
EXPECT_CALL(*client_, OnIncomingCapturedVideoFrame(_,_,_)).Times(0);
}
« media/video/capture/video_capture_device.h ('K') | « media/video/capture/video_capture_device.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698