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

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

Issue 13461029: The continue window is owned by the desktop environment now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 8 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/continue_window_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/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/client_session_control.h" 11 #include "remoting/host/client_session_control.h"
12 #include "remoting/host/continue_window.h"
13 #include "remoting/host/desktop_environment.h" 12 #include "remoting/host/desktop_environment.h"
14 #include "remoting/host/host_status_observer.h" 13 #include "remoting/host/host_status_observer.h"
15 #include "remoting/host/host_window.h"
16 #include "remoting/host/input_injector.h" 14 #include "remoting/host/input_injector.h"
17 #include "remoting/host/screen_controls.h" 15 #include "remoting/host/screen_controls.h"
18 #include "remoting/host/screen_resolution.h" 16 #include "remoting/host/screen_resolution.h"
19 #include "remoting/proto/control.pb.h" 17 #include "remoting/proto/control.pb.h"
20 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
21 19
22 namespace base { 20 namespace base {
23 class SingleThreadTaskRunner; 21 class SingleThreadTaskRunner;
24 } // namespace base 22 } // namespace base
25 23
(...skipping 11 matching lines...) Expand all
37 MOCK_CONST_METHOD0(GetCapabilities, std::string()); 35 MOCK_CONST_METHOD0(GetCapabilities, std::string());
38 MOCK_METHOD1(SetCapabilities, void(const std::string&)); 36 MOCK_METHOD1(SetCapabilities, void(const std::string&));
39 37
40 // DesktopEnvironment implementation. 38 // DesktopEnvironment implementation.
41 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() OVERRIDE; 39 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() OVERRIDE;
42 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE; 40 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE;
43 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE; 41 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE;
44 virtual scoped_ptr<media::ScreenCapturer> CreateVideoCapturer() OVERRIDE; 42 virtual scoped_ptr<media::ScreenCapturer> CreateVideoCapturer() OVERRIDE;
45 }; 43 };
46 44
47 class MockContinueWindow : public ContinueWindow {
48 public:
49 MockContinueWindow();
50 virtual ~MockContinueWindow();
51
52 MOCK_METHOD1(Show, void(
53 const remoting::ContinueWindow::ContinueSessionCallback& callback));
54 MOCK_METHOD0(Hide, void());
55 };
56
57 class MockClientSessionControl : public ClientSessionControl { 45 class MockClientSessionControl : public ClientSessionControl {
58 public: 46 public:
59 MockClientSessionControl(); 47 MockClientSessionControl();
60 virtual ~MockClientSessionControl(); 48 virtual ~MockClientSessionControl();
61 49
62 MOCK_CONST_METHOD0(client_jid, const std::string&()); 50 MOCK_CONST_METHOD0(client_jid, const std::string&());
63 MOCK_METHOD0(DisconnectSession, void()); 51 MOCK_METHOD0(DisconnectSession, void());
64 MOCK_METHOD1(OnLocalMouseMoved, void(const SkIPoint&)); 52 MOCK_METHOD1(OnLocalMouseMoved, void(const SkIPoint&));
65 MOCK_METHOD1(SetDisableInputs, void(bool)); 53 MOCK_METHOD1(SetDisableInputs, void(bool));
66 54
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 void(const std::string& jid, 122 void(const std::string& jid,
135 const std::string& channel_name, 123 const std::string& channel_name,
136 const protocol::TransportRoute& route)); 124 const protocol::TransportRoute& route));
137 MOCK_METHOD1(OnStart, void(const std::string& xmpp_login)); 125 MOCK_METHOD1(OnStart, void(const std::string& xmpp_login));
138 MOCK_METHOD0(OnShutdown, void()); 126 MOCK_METHOD0(OnShutdown, void());
139 }; 127 };
140 128
141 } // namespace remoting 129 } // namespace remoting
142 130
143 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 131 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/continue_window_win.cc ('k') | remoting/host/host_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698