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

Side by Side Diff: remoting/host/host_mock_objects.h

Issue 10413060: [Chromoting] Let the Windows IT2Me host send clipboard events to the client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Correct fix. Created 8 years, 6 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/host_mock_objects.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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 class MockEventExecutor : public EventExecutor { 121 class MockEventExecutor : public EventExecutor {
122 public: 122 public:
123 MockEventExecutor(); 123 MockEventExecutor();
124 virtual ~MockEventExecutor(); 124 virtual ~MockEventExecutor();
125 125
126 MOCK_METHOD1(InjectClipboardEvent, 126 MOCK_METHOD1(InjectClipboardEvent,
127 void(const protocol::ClipboardEvent& event)); 127 void(const protocol::ClipboardEvent& event));
128 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event)); 128 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event));
129 MOCK_METHOD1(InjectMouseEvent, void(const protocol::MouseEvent& event)); 129 MOCK_METHOD1(InjectMouseEvent, void(const protocol::MouseEvent& event));
130 MOCK_METHOD0(OnSessionStarted, void());
131 MOCK_METHOD0(OnSessionFinished, void()); 130 MOCK_METHOD0(OnSessionFinished, void());
132 131
132 void OnSessionStarted(scoped_ptr<protocol::ClipboardStub> client_clipboard);
133
133 private: 134 private:
134 DISALLOW_COPY_AND_ASSIGN(MockEventExecutor); 135 DISALLOW_COPY_AND_ASSIGN(MockEventExecutor);
135 }; 136 };
136 137
137 class MockUserAuthenticator : public UserAuthenticator { 138 class MockUserAuthenticator : public UserAuthenticator {
138 public: 139 public:
139 MockUserAuthenticator(); 140 MockUserAuthenticator();
140 virtual ~MockUserAuthenticator(); 141 virtual ~MockUserAuthenticator();
141 142
142 MOCK_METHOD2(Authenticate, bool(const std::string& username, 143 MOCK_METHOD2(Authenticate, bool(const std::string& username,
143 const std::string& password)); 144 const std::string& password));
144 145
145 private: 146 private:
146 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); 147 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator);
147 }; 148 };
148 149
149 } // namespace remoting 150 } // namespace remoting
150 151
151 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 152 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/event_executor_win.cc ('k') | remoting/host/host_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698