Index: webrtc/modules/desktop_capture/screen_capturer_mock_objects.h |
diff --git a/webrtc/modules/desktop_capture/screen_capturer_mock_objects.h b/webrtc/modules/desktop_capture/screen_capturer_mock_objects.h |
index 7264249e0fb0c70403ece92b121b5b54e7678c13..1f17e8c8be3e57b1caf53c5fe38d169ff5602708 100644 |
--- a/webrtc/modules/desktop_capture/screen_capturer_mock_objects.h |
+++ b/webrtc/modules/desktop_capture/screen_capturer_mock_objects.h |
@@ -36,7 +36,13 @@ class MockScreenCapturerCallback : public ScreenCapturer::Callback { |
MockScreenCapturerCallback() {} |
virtual ~MockScreenCapturerCallback() {} |
- MOCK_METHOD1(OnCaptureCompleted, void(DesktopFrame*)); |
+ MOCK_METHOD2(OnCaptureResultPtr, |
+ void(DesktopCapturer::Result result, |
+ std::unique_ptr<DesktopFrame>* frame)); |
+ void OnCaptureResult(DesktopCapturer::Result result, |
+ std::unique_ptr<DesktopFrame> frame) override { |
+ OnCaptureResultPtr(result, &frame); |
+ } |
private: |
RTC_DISALLOW_COPY_AND_ASSIGN(MockScreenCapturerCallback); |