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_; |