| 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 <cstdint> |
| 9 #include <memory> |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "base/macros.h" | 12 #include "base/macros.h" |
| 11 #include "net/base/ip_endpoint.h" | 13 #include "net/base/ip_endpoint.h" |
| 12 #include "remoting/codec/video_encoder.h" | 14 #include "remoting/codec/video_encoder.h" |
| 13 #include "remoting/host/chromoting_host_context.h" | 15 #include "remoting/host/chromoting_host_context.h" |
| 14 #include "remoting/host/client_session.h" | 16 #include "remoting/host/client_session.h" |
| 15 #include "remoting/host/client_session_control.h" | 17 #include "remoting/host/client_session_control.h" |
| 16 #include "remoting/host/desktop_environment.h" | 18 #include "remoting/host/desktop_environment.h" |
| 17 #include "remoting/host/host_status_observer.h" | 19 #include "remoting/host/host_status_observer.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 36 MockDesktopEnvironment(); | 38 MockDesktopEnvironment(); |
| 37 ~MockDesktopEnvironment() override; | 39 ~MockDesktopEnvironment() override; |
| 38 | 40 |
| 39 MOCK_METHOD0(CreateAudioCapturerPtr, AudioCapturer*()); | 41 MOCK_METHOD0(CreateAudioCapturerPtr, AudioCapturer*()); |
| 40 MOCK_METHOD0(CreateInputInjectorPtr, InputInjector*()); | 42 MOCK_METHOD0(CreateInputInjectorPtr, InputInjector*()); |
| 41 MOCK_METHOD0(CreateScreenControlsPtr, ScreenControls*()); | 43 MOCK_METHOD0(CreateScreenControlsPtr, ScreenControls*()); |
| 42 MOCK_METHOD0(CreateVideoCapturerPtr, webrtc::DesktopCapturer*()); | 44 MOCK_METHOD0(CreateVideoCapturerPtr, webrtc::DesktopCapturer*()); |
| 43 MOCK_METHOD0(CreateMouseCursorMonitorPtr, webrtc::MouseCursorMonitor*()); | 45 MOCK_METHOD0(CreateMouseCursorMonitorPtr, webrtc::MouseCursorMonitor*()); |
| 44 MOCK_CONST_METHOD0(GetCapabilities, std::string()); | 46 MOCK_CONST_METHOD0(GetCapabilities, std::string()); |
| 45 MOCK_METHOD1(SetCapabilities, void(const std::string&)); | 47 MOCK_METHOD1(SetCapabilities, void(const std::string&)); |
| 48 MOCK_CONST_METHOD0(GetDesktopSessionId, uint32_t()); |
| 46 | 49 |
| 47 // DesktopEnvironment implementation. | 50 // DesktopEnvironment implementation. |
| 48 std::unique_ptr<AudioCapturer> CreateAudioCapturer() override; | 51 std::unique_ptr<AudioCapturer> CreateAudioCapturer() override; |
| 49 std::unique_ptr<InputInjector> CreateInputInjector() override; | 52 std::unique_ptr<InputInjector> CreateInputInjector() override; |
| 50 std::unique_ptr<ScreenControls> CreateScreenControls() override; | 53 std::unique_ptr<ScreenControls> CreateScreenControls() override; |
| 51 std::unique_ptr<webrtc::DesktopCapturer> CreateVideoCapturer() override; | 54 std::unique_ptr<webrtc::DesktopCapturer> CreateVideoCapturer() override; |
| 52 std::unique_ptr<webrtc::MouseCursorMonitor> CreateMouseCursorMonitor() | 55 std::unique_ptr<webrtc::MouseCursorMonitor> CreateMouseCursorMonitor() |
| 53 override; | 56 override; |
| 54 }; | 57 }; |
| 55 | 58 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 MOCK_METHOD2(Init, void(Callback* callback, Mode mode)); | 173 MOCK_METHOD2(Init, void(Callback* callback, Mode mode)); |
| 171 MOCK_METHOD0(Capture, void()); | 174 MOCK_METHOD0(Capture, void()); |
| 172 | 175 |
| 173 private: | 176 private: |
| 174 DISALLOW_COPY_AND_ASSIGN(MockMouseCursorMonitor); | 177 DISALLOW_COPY_AND_ASSIGN(MockMouseCursorMonitor); |
| 175 }; | 178 }; |
| 176 | 179 |
| 177 } // namespace remoting | 180 } // namespace remoting |
| 178 | 181 |
| 179 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 182 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
| OLD | NEW |