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

Unified Diff: remoting/capturer/capturer_mock_objects.h

Issue 11470028: Move screen capturers to remoting/capturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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: remoting/capturer/capturer_mock_objects.h
diff --git a/remoting/capturer/capturer_mock_objects.h b/remoting/capturer/capturer_mock_objects.h
new file mode 100644
index 0000000000000000000000000000000000000000..41a4a550dc71e6b6d97b4aad0334089749a676eb
--- /dev/null
+++ b/remoting/capturer/capturer_mock_objects.h
@@ -0,0 +1,46 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_CAPTURER_CAPTURER_MOCK_OBJECTS_H_
Wez 2012/12/11 05:23:18 nit: Rename this video_capturer_mock_objects.h?
Sergey Ulanov 2012/12/12 18:31:12 Done.
+#define REMOTING_CAPTURER_CAPTURER_MOCK_OBJECTS_H_
Wez 2012/12/11 05:23:18 Code review seems to have this as a new file, rath
Sergey Ulanov 2012/12/12 18:31:12 It's correct. I've moved only parts of host_mock_o
+
+#include "remoting/capturer/capture_data.h"
+#include "remoting/capturer/mouse_cursor_shape.h"
+#include "remoting/capturer/video_frame_capturer.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace remoting {
+
+class MockVideoFrameCapturer : public VideoFrameCapturer {
+ public:
+ MockVideoFrameCapturer();
+ virtual ~MockVideoFrameCapturer();
+
+ MOCK_METHOD1(Start, void(Delegate* delegate));
+ MOCK_METHOD0(Stop, void());
+ MOCK_CONST_METHOD0(pixel_format, media::VideoFrame::Format());
+ MOCK_METHOD1(InvalidateRegion, void(const SkRegion& invalid_region));
+ MOCK_METHOD0(CaptureFrame, void());
+ MOCK_CONST_METHOD0(size_most_recent, const SkISize&());
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockVideoFrameCapturer);
+};
+
+class MockVideoFrameCapturerDelegate : public VideoFrameCapturer::Delegate {
+ public:
+ MockVideoFrameCapturerDelegate();
+ virtual ~MockVideoFrameCapturerDelegate();
+
+ MOCK_METHOD1(OnCursorShapeChanged,
+ void(const MouseCursorShape& cursor_shape));
+ MOCK_METHOD1(OnCaptureCompleted, void(scoped_refptr<CaptureData>));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockVideoFrameCapturerDelegate);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_CAPTURER_CAPTURER_MOCK_OBJECTS_H_

Powered by Google App Engine
This is Rietveld 408576698