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

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

Issue 10915206: [Chromoting] Refactoring DesktopEnvironment and moving screen/audio recorders to ClientSession. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 3 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/video_frame_capturer.h" 9 #include "remoting/host/video_frame_capturer.h"
10 #include "remoting/host/chromoting_host_context.h" 10 #include "remoting/host/chromoting_host_context.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 class MockEventExecutor : public EventExecutor { 120 class MockEventExecutor : public EventExecutor {
121 public: 121 public:
122 MockEventExecutor(); 122 MockEventExecutor();
123 virtual ~MockEventExecutor(); 123 virtual ~MockEventExecutor();
124 124
125 MOCK_METHOD1(InjectClipboardEvent, 125 MOCK_METHOD1(InjectClipboardEvent,
126 void(const protocol::ClipboardEvent& event)); 126 void(const protocol::ClipboardEvent& event));
127 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event)); 127 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event));
128 MOCK_METHOD1(InjectMouseEvent, void(const protocol::MouseEvent& event)); 128 MOCK_METHOD1(InjectMouseEvent, void(const protocol::MouseEvent& event));
129 MOCK_METHOD1(OnSessionStartedPtr, 129 MOCK_METHOD1(StartPtr,
130 void(protocol::ClipboardStub* client_clipboard)); 130 void(protocol::ClipboardStub* client_clipboard));
131 MOCK_METHOD0(OnSessionFinished, void()); 131 MOCK_METHOD0(StopAndDeleteMock, void());
132 132
133 void OnSessionStarted(scoped_ptr<protocol::ClipboardStub> client_clipboard); 133 void Start(scoped_ptr<protocol::ClipboardStub> client_clipboard);
134 void StopAndDelete();
134 135
135 private: 136 private:
136 DISALLOW_COPY_AND_ASSIGN(MockEventExecutor); 137 DISALLOW_COPY_AND_ASSIGN(MockEventExecutor);
137 }; 138 };
138 139
139 class MockHostStatusObserver : public HostStatusObserver { 140 class MockHostStatusObserver : public HostStatusObserver {
140 public: 141 public:
141 MockHostStatusObserver(); 142 MockHostStatusObserver();
142 virtual ~MockHostStatusObserver(); 143 virtual ~MockHostStatusObserver();
143 144
(...skipping 17 matching lines...) Expand all
161 MOCK_METHOD2(Authenticate, bool(const std::string& username, 162 MOCK_METHOD2(Authenticate, bool(const std::string& username,
162 const std::string& password)); 163 const std::string& password));
163 164
164 private: 165 private:
165 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); 166 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator);
166 }; 167 };
167 168
168 } // namespace remoting 169 } // namespace remoting
169 170
170 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 171 #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