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

Unified Diff: remoting/protocol/protocol_mock_objects.h

Issue 9646013: Add the plumbing that will carry a clipboard item from a chromoting client to a host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix remoting_simple_host. Created 8 years, 9 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
« no previous file with comments | « remoting/protocol/input_stub.h ('k') | remoting/protocol/protocol_mock_objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/protocol_mock_objects.h
diff --git a/remoting/protocol/protocol_mock_objects.h b/remoting/protocol/protocol_mock_objects.h
index 20a56b34d785badd9e407aa1e5abeb404699cc5b..6a7c0a84e867ccbcf04778b3b0ea2b047c8ae436 100644
--- a/remoting/protocol/protocol_mock_objects.h
+++ b/remoting/protocol/protocol_mock_objects.h
@@ -10,7 +10,9 @@
#include "net/base/ip_endpoint.h"
#include "remoting/proto/internal.pb.h"
#include "remoting/protocol/client_stub.h"
+#include "remoting/protocol/clipboard_stub.h"
#include "remoting/protocol/connection_to_client.h"
+#include "remoting/protocol/host_event_stub.h"
#include "remoting/protocol/host_stub.h"
#include "remoting/protocol/input_stub.h"
#include "remoting/protocol/session.h"
@@ -59,6 +61,17 @@ class MockConnectionToClientEventHandler :
DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler);
};
+class MockClipboardStub : public ClipboardStub {
+ public:
+ MockClipboardStub();
+ virtual ~MockClipboardStub();
+
+ MOCK_METHOD1(InjectClipboardEvent, void(const ClipboardEvent& event));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockClipboardStub);
+};
+
class MockInputStub : public InputStub {
public:
MockInputStub();
@@ -71,6 +84,19 @@ class MockInputStub : public InputStub {
DISALLOW_COPY_AND_ASSIGN(MockInputStub);
};
+class MockHostEventStub : public HostEventStub {
+ public:
+ MockHostEventStub();
+ virtual ~MockHostEventStub();
+
+ MOCK_METHOD1(InjectClipboardEvent, void(const ClipboardEvent& event));
+ MOCK_METHOD1(InjectKeyEvent, void(const KeyEvent& event));
+ MOCK_METHOD1(InjectMouseEvent, void(const MouseEvent& event));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockHostEventStub);
+};
+
class MockHostStub : public HostStub {
public:
MockHostStub();
« no previous file with comments | « remoting/protocol/input_stub.h ('k') | remoting/protocol/protocol_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698