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

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: Sync, and make InputStub inherit from ClipboardStub. 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
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..1d5415423b29cedfc24cd4395e26e1b0c8c48633 100644
--- a/remoting/protocol/protocol_mock_objects.h
+++ b/remoting/protocol/protocol_mock_objects.h
@@ -10,6 +10,7 @@
#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_stub.h"
#include "remoting/protocol/input_stub.h"
@@ -59,11 +60,25 @@ class MockConnectionToClientEventHandler :
DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler);
};
+class MockClipboardStub : public ClipboardStub {
Wez 2012/03/15 01:14:44 nit: At this point we don't actually need a MockCl
simonmorris 2012/03/15 16:53:19 They're separate again now.
+ public:
+ MockClipboardStub();
+ virtual ~MockClipboardStub();
+
+ MOCK_METHOD1(InjectClipboardEvent, void(const ClipboardEvent& event));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockClipboardStub);
+};
+
class MockInputStub : public InputStub {
public:
MockInputStub();
virtual ~MockInputStub();
+ // TODO(wez): Delete the next line when InputStub no longer inherits from
+ // ClipboardStub.
+ MOCK_METHOD1(InjectClipboardEvent, void(const ClipboardEvent&));
MOCK_METHOD1(InjectKeyEvent, void(const KeyEvent& event));
MOCK_METHOD1(InjectMouseEvent, void(const MouseEvent& event));

Powered by Google App Engine
This is Rietveld 408576698