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

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

Issue 12678008: Reworked the plumbing required to pass the client resolution to the desktop resizer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback Created 7 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/desktop_session_win.cc ('k') | remoting/host/ipc_desktop_environment.h » ('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/chromoting_host_context.h" 9 #include "remoting/host/chromoting_host_context.h"
10 #include "remoting/host/client_session.h" 10 #include "remoting/host/client_session.h"
11 #include "remoting/host/continue_window.h" 11 #include "remoting/host/continue_window.h"
12 #include "remoting/host/desktop_environment.h" 12 #include "remoting/host/desktop_environment.h"
13 #include "remoting/host/disconnect_window.h" 13 #include "remoting/host/disconnect_window.h"
14 #include "remoting/host/event_executor.h" 14 #include "remoting/host/event_executor.h"
15 #include "remoting/host/host_status_observer.h" 15 #include "remoting/host/host_status_observer.h"
16 #include "remoting/host/local_input_monitor.h" 16 #include "remoting/host/local_input_monitor.h"
17 #include "remoting/host/screen_resolution.h"
17 #include "remoting/host/session_controller.h" 18 #include "remoting/host/session_controller.h"
18 #include "remoting/proto/control.pb.h" 19 #include "remoting/proto/control.pb.h"
19 #include "testing/gmock/include/gmock/gmock.h" 20 #include "testing/gmock/include/gmock/gmock.h"
20 21
21 namespace base { 22 namespace base {
22 class SingleThreadTaskRunner; 23 class SingleThreadTaskRunner;
23 } // namespace base 24 } // namespace base
24 25
25 namespace remoting { 26 namespace remoting {
26 27
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 const protocol::TransportRoute& route)); 152 const protocol::TransportRoute& route));
152 MOCK_METHOD1(OnStart, void(const std::string& xmpp_login)); 153 MOCK_METHOD1(OnStart, void(const std::string& xmpp_login));
153 MOCK_METHOD0(OnShutdown, void()); 154 MOCK_METHOD0(OnShutdown, void());
154 }; 155 };
155 156
156 class MockSessionController : public SessionController { 157 class MockSessionController : public SessionController {
157 public: 158 public:
158 MockSessionController(); 159 MockSessionController();
159 virtual ~MockSessionController(); 160 virtual ~MockSessionController();
160 161
161 MOCK_METHOD2(OnClientResolutionChanged, 162 MOCK_METHOD1(SetScreenResolution, void(const ScreenResolution&));
162 void(const SkIPoint&, const SkISize&));
163 163
164 private: 164 private:
165 DISALLOW_COPY_AND_ASSIGN(MockSessionController); 165 DISALLOW_COPY_AND_ASSIGN(MockSessionController);
166 }; 166 };
167 167
168 } // namespace remoting 168 } // namespace remoting
169 169
170 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 170 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/desktop_session_win.cc ('k') | remoting/host/ipc_desktop_environment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698