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

Side by Side Diff: remoting/host/host_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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/event_executor_win.cc ('k') | remoting/host/simple_host_process.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 5 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_
6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_
7 7
8 #include "net/base/ip_endpoint.h" 8 #include "net/base/ip_endpoint.h"
9 #include "remoting/host/capturer.h" 9 #include "remoting/host/capturer.h"
10 #include "remoting/host/curtain.h" 10 #include "remoting/host/curtain.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 private: 114 private:
115 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); 115 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler);
116 }; 116 };
117 117
118 class MockEventExecutor : public EventExecutor { 118 class MockEventExecutor : public EventExecutor {
119 public: 119 public:
120 MockEventExecutor(); 120 MockEventExecutor();
121 virtual ~MockEventExecutor(); 121 virtual ~MockEventExecutor();
122 122
123 MOCK_METHOD1(InjectClipboardEvent,
124 void(const protocol::ClipboardEvent& event));
123 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event)); 125 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event));
124 MOCK_METHOD1(InjectMouseEvent, void(const protocol::MouseEvent& event)); 126 MOCK_METHOD1(InjectMouseEvent, void(const protocol::MouseEvent& event));
125 127
126 private: 128 private:
127 DISALLOW_COPY_AND_ASSIGN(MockEventExecutor); 129 DISALLOW_COPY_AND_ASSIGN(MockEventExecutor);
128 }; 130 };
129 131
130 class MockUserAuthenticator : public UserAuthenticator { 132 class MockUserAuthenticator : public UserAuthenticator {
131 public: 133 public:
132 MockUserAuthenticator(); 134 MockUserAuthenticator();
133 virtual ~MockUserAuthenticator(); 135 virtual ~MockUserAuthenticator();
134 136
135 MOCK_METHOD2(Authenticate, bool(const std::string& username, 137 MOCK_METHOD2(Authenticate, bool(const std::string& username,
136 const std::string& password)); 138 const std::string& password));
137 139
138 private: 140 private:
139 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); 141 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator);
140 }; 142 };
141 143
142 } // namespace remoting 144 } // namespace remoting
143 145
144 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 146 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/event_executor_win.cc ('k') | remoting/host/simple_host_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698