OLD | NEW |
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/base/capabilities.h" |
9 #include "remoting/host/chromoting_host_context.h" | 10 #include "remoting/host/chromoting_host_context.h" |
10 #include "remoting/host/client_session.h" | 11 #include "remoting/host/client_session.h" |
11 #include "remoting/host/client_session_control.h" | 12 #include "remoting/host/client_session_control.h" |
12 #include "remoting/host/continue_window.h" | 13 #include "remoting/host/continue_window.h" |
13 #include "remoting/host/desktop_environment.h" | 14 #include "remoting/host/desktop_environment.h" |
14 #include "remoting/host/host_status_observer.h" | 15 #include "remoting/host/host_status_observer.h" |
15 #include "remoting/host/host_window.h" | 16 #include "remoting/host/host_window.h" |
16 #include "remoting/host/input_injector.h" | 17 #include "remoting/host/input_injector.h" |
17 #include "remoting/host/screen_controls.h" | 18 #include "remoting/host/screen_controls.h" |
18 #include "remoting/host/screen_resolution.h" | 19 #include "remoting/host/screen_resolution.h" |
19 #include "remoting/proto/control.pb.h" | 20 #include "remoting/proto/control.pb.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
21 | 22 |
22 namespace base { | 23 namespace base { |
23 class SingleThreadTaskRunner; | 24 class SingleThreadTaskRunner; |
24 } // namespace base | 25 } // namespace base |
25 | 26 |
26 namespace remoting { | 27 namespace remoting { |
27 | 28 |
28 class MockDesktopEnvironment : public DesktopEnvironment { | 29 class MockDesktopEnvironment : public DesktopEnvironment { |
29 public: | 30 public: |
30 MockDesktopEnvironment(); | 31 MockDesktopEnvironment(); |
31 virtual ~MockDesktopEnvironment(); | 32 virtual ~MockDesktopEnvironment(); |
32 | 33 |
33 MOCK_METHOD0(CreateAudioCapturerPtr, AudioCapturer*()); | 34 MOCK_METHOD0(CreateAudioCapturerPtr, AudioCapturer*()); |
34 MOCK_METHOD0(CreateInputInjectorPtr, InputInjector*()); | 35 MOCK_METHOD0(CreateInputInjectorPtr, InputInjector*()); |
35 MOCK_METHOD0(CreateScreenControlsPtr, ScreenControls*()); | 36 MOCK_METHOD0(CreateScreenControlsPtr, ScreenControls*()); |
36 MOCK_METHOD0(CreateVideoCapturerPtr, media::ScreenCapturer*()); | 37 MOCK_METHOD0(CreateVideoCapturerPtr, media::ScreenCapturer*()); |
| 38 MOCK_CONST_METHOD0(GetCapabilities, Capabilities()); |
| 39 MOCK_METHOD1(SetCapabilities, void(const Capabilities&)); |
37 | 40 |
38 // DesktopEnvironment implementation. | 41 // DesktopEnvironment implementation. |
39 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() OVERRIDE; | 42 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() OVERRIDE; |
40 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE; | 43 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE; |
41 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE; | 44 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE; |
42 virtual scoped_ptr<media::ScreenCapturer> CreateVideoCapturer() OVERRIDE; | 45 virtual scoped_ptr<media::ScreenCapturer> CreateVideoCapturer() OVERRIDE; |
43 }; | 46 }; |
44 | 47 |
45 class MockContinueWindow : public ContinueWindow { | 48 class MockContinueWindow : public ContinueWindow { |
46 public: | 49 public: |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 void(const std::string& jid, | 135 void(const std::string& jid, |
133 const std::string& channel_name, | 136 const std::string& channel_name, |
134 const protocol::TransportRoute& route)); | 137 const protocol::TransportRoute& route)); |
135 MOCK_METHOD1(OnStart, void(const std::string& xmpp_login)); | 138 MOCK_METHOD1(OnStart, void(const std::string& xmpp_login)); |
136 MOCK_METHOD0(OnShutdown, void()); | 139 MOCK_METHOD0(OnShutdown, void()); |
137 }; | 140 }; |
138 | 141 |
139 } // namespace remoting | 142 } // namespace remoting |
140 | 143 |
141 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 144 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
OLD | NEW |