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

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

Issue 2583883003: Rebase of Removing gpu::SyncToken usage from video capture pipeline (Closed)
Patch Set: Rebase. Created 3 years, 12 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_impl_manager_unittest.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_impl_unittest.cc
diff --git a/content/renderer/media/video_capture_impl_unittest.cc b/content/renderer/media/video_capture_impl_unittest.cc
index 9fee656cfc3e7ba8e924415b5f4c83807e73511e..f130682f5367728943b054dad3a018f61f1d8a16 100644
--- a/content/renderer/media/video_capture_impl_unittest.cc
+++ b/content/renderer/media/video_capture_impl_unittest.cc
@@ -37,7 +37,7 @@ class MockMojoVideoCaptureHost : public mojom::VideoCaptureHost {
.WillByDefault(WithArgs<2>(Invoke(RunEmptyFormatsCallback)));
ON_CALL(*this, GetDeviceFormatsInUse(_, _, _))
.WillByDefault(WithArgs<2>(Invoke(RunEmptyFormatsCallback)));
- ON_CALL(*this, ReleaseBuffer(_, _, _, _))
+ ON_CALL(*this, ReleaseBuffer(_, _, _))
.WillByDefault(InvokeWithoutArgs(
this, &MockMojoVideoCaptureHost::increase_released_buffer_count));
}
@@ -56,8 +56,7 @@ class MockMojoVideoCaptureHost : public mojom::VideoCaptureHost {
MOCK_METHOD3(Resume,
void(int32_t, int32_t, const media::VideoCaptureParams&));
MOCK_METHOD1(RequestRefreshFrame, void(int32_t));
- MOCK_METHOD4(ReleaseBuffer,
- void(int32_t, int32_t, const gpu::SyncToken&, double));
+ MOCK_METHOD3(ReleaseBuffer, void(int32_t, int32_t, double));
MOCK_METHOD3(GetDeviceSupportedFormats,
void(int32_t,
int32_t,
@@ -265,7 +264,7 @@ TEST_F(VideoCaptureImplTest, BufferReceived) {
EXPECT_CALL(*this, OnFrameReady(_, _));
EXPECT_CALL(mock_video_capture_host_, DoStart(_, kSessionId, params_small_));
EXPECT_CALL(mock_video_capture_host_, Stop(_));
- EXPECT_CALL(mock_video_capture_host_, ReleaseBuffer(_, kBufferId, _, _))
+ EXPECT_CALL(mock_video_capture_host_, ReleaseBuffer(_, kBufferId, _))
.Times(0);
StartCapture(0, params_small_);
@@ -290,7 +289,7 @@ TEST_F(VideoCaptureImplTest, BufferReceivedAfterStop) {
EXPECT_CALL(*this, OnFrameReady(_, _)).Times(0);
EXPECT_CALL(mock_video_capture_host_, DoStart(_, kSessionId, params_large_));
EXPECT_CALL(mock_video_capture_host_, Stop(_));
- EXPECT_CALL(mock_video_capture_host_, ReleaseBuffer(_, kBufferId, _, _));
+ EXPECT_CALL(mock_video_capture_host_, ReleaseBuffer(_, kBufferId, _));
StartCapture(0, params_large_);
SimulateOnBufferCreated(kBufferId, shm);
« no previous file with comments | « content/renderer/media/video_capture_impl_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698