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

Unified Diff: webrtc/modules/desktop_capture/screen_capturer_mock_objects.h

Issue 2030333003: Revert of Use std::unique_ptr<> to pass frame ownership in DesktopCapturer impls. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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: 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 1f17e8c8be3e57b1caf53c5fe38d169ff5602708..7264249e0fb0c70403ece92b121b5b54e7678c13 100644
--- a/webrtc/modules/desktop_capture/screen_capturer_mock_objects.h
+++ b/webrtc/modules/desktop_capture/screen_capturer_mock_objects.h
@@ -36,13 +36,7 @@
MockScreenCapturerCallback() {}
virtual ~MockScreenCapturerCallback() {}
- 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);
- }
+ MOCK_METHOD1(OnCaptureCompleted, void(DesktopFrame*));
private:
RTC_DISALLOW_COPY_AND_ASSIGN(MockScreenCapturerCallback);

Powered by Google App Engine
This is Rietveld 408576698