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

Unified Diff: remoting/capturer/video_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
« no previous file with comments | « remoting/capturer/shared_buffer_unittest.cc ('k') | remoting/capturer/video_capturer_mock_objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/capturer/video_capturer_mock_objects.h
diff --git a/remoting/capturer/video_capturer_mock_objects.h b/remoting/capturer/video_capturer_mock_objects.h
new file mode 100644
index 0000000000000000000000000000000000000000..4774bedeb7ed3ec6dd470c7d4f6b0edc3a58bf9b
--- /dev/null
+++ b/remoting/capturer/video_capturer_mock_objects.h
@@ -0,0 +1,48 @@
+// 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_VIDEO_CAPTURER_MOCK_OBJECTS_H_
+#define REMOTING_CAPTURER_VIDEO_CAPTURER_MOCK_OBJECTS_H_
+
+#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();
+
+ void OnCursorShapeChanged(scoped_ptr<MouseCursorShape> cursor_shape) OVERRIDE;
+
+ MOCK_METHOD1(OnCaptureCompleted, void(scoped_refptr<CaptureData>));
+ MOCK_METHOD1(OnCursorShapeChangedPtr,
+ void(MouseCursorShape* cursor_shape));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockVideoFrameCapturerDelegate);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_CAPTURER_VIDEO_CAPTURER_MOCK_OBJECTS_H_
« no previous file with comments | « remoting/capturer/shared_buffer_unittest.cc ('k') | remoting/capturer/video_capturer_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698