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

Unified Diff: services/video_capture/test/mock_receiver.h

Issue 2818513003: [Mojo Video Capture] Adapt video_capture service to refactored video capture stack (Closed)
Patch Set: Fix compile errors Created 3 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 | « services/video_capture/test/mock_device_unittest.cc ('k') | services/video_capture/test/mock_receiver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/video_capture/test/mock_receiver.h
diff --git a/services/video_capture/test/mock_receiver.h b/services/video_capture/test/mock_receiver.h
index 5e8a1656ba32d14498beaf2b96f979b018c1a8a2..294e48a66a805bdc959dcd1426b9f1d297d463ea 100644
--- a/services/video_capture/test/mock_receiver.h
+++ b/services/video_capture/test/mock_receiver.h
@@ -18,14 +18,26 @@ class MockReceiver : public mojom::Receiver {
~MockReceiver() override;
// Use forwarding method to work around gmock not supporting move-only types.
- void OnIncomingCapturedVideoFrame(media::mojom::VideoFramePtr frame) override;
-
- MOCK_METHOD1(OnIncomingCapturedVideoFramePtr,
- void(const media::mojom::VideoFramePtr* frame));
+ void OnNewBufferHandle(int32_t buffer_id,
+ mojo::ScopedSharedBufferHandle buffer_handle) override;
+ void OnFrameReadyInBuffer(
+ int32_t buffer_id,
+ int32_t frame_feedback_id,
+ mojom::ScopedAccessPermissionPtr access_permission,
+ media::mojom::VideoFrameInfoPtr frame_info) override;
+
+ MOCK_METHOD2(DoOnNewBufferHandle,
+ void(int32_t, mojo::ScopedSharedBufferHandle*));
+ MOCK_METHOD4(DoOnFrameReadyInBuffer,
+ void(int32_t buffer_id,
+ int32_t frame_feedback_id,
+ mojom::ScopedAccessPermissionPtr*,
+ media::mojom::VideoFrameInfoPtr*));
+ MOCK_METHOD1(OnBufferRetired, void(int32_t));
MOCK_METHOD0(OnError, void());
MOCK_METHOD1(OnLog, void(const std::string&));
MOCK_METHOD0(OnStarted, void());
- MOCK_METHOD1(OnBufferDestroyed, void(int32_t));
+ MOCK_METHOD0(OnStartedUsingGpuDecode, void());
private:
const mojo::Binding<mojom::Receiver> binding_;
« no previous file with comments | « services/video_capture/test/mock_device_unittest.cc ('k') | services/video_capture/test/mock_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698