| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "net/base/ip_endpoint.h" | 10 #include "net/base/ip_endpoint.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 namespace remoting { | 28 namespace remoting { |
| 29 | 29 |
| 30 class MockDesktopEnvironment : public DesktopEnvironment { | 30 class MockDesktopEnvironment : public DesktopEnvironment { |
| 31 public: | 31 public: |
| 32 MockDesktopEnvironment(); | 32 MockDesktopEnvironment(); |
| 33 virtual ~MockDesktopEnvironment(); | 33 virtual ~MockDesktopEnvironment(); |
| 34 | 34 |
| 35 MOCK_METHOD0(CreateAudioCapturerPtr, AudioCapturer*()); | 35 MOCK_METHOD0(CreateAudioCapturerPtr, AudioCapturer*()); |
| 36 MOCK_METHOD0(CreateInputInjectorPtr, InputInjector*()); | 36 MOCK_METHOD0(CreateInputInjectorPtr, InputInjector*()); |
| 37 MOCK_METHOD0(CreateScreenControlsPtr, ScreenControls*()); | 37 MOCK_METHOD0(CreateScreenControlsPtr, ScreenControls*()); |
| 38 MOCK_METHOD0(CreateVideoCapturerPtr, webrtc::ScreenCapturer*()); | 38 MOCK_METHOD0(CreateVideoCapturerPtr, webrtc::DesktopCapturer*()); |
| 39 MOCK_METHOD0(CreateMouseCursorMonitorPtr, webrtc::MouseCursorMonitor*()); | 39 MOCK_METHOD0(CreateMouseCursorMonitorPtr, webrtc::MouseCursorMonitor*()); |
| 40 MOCK_CONST_METHOD0(GetCapabilities, std::string()); | 40 MOCK_CONST_METHOD0(GetCapabilities, std::string()); |
| 41 MOCK_METHOD1(SetCapabilities, void(const std::string&)); | 41 MOCK_METHOD1(SetCapabilities, void(const std::string&)); |
| 42 MOCK_METHOD1(CreateGnubbyAuthHandlerPtr, GnubbyAuthHandler*( | 42 MOCK_METHOD1(CreateGnubbyAuthHandlerPtr, GnubbyAuthHandler*( |
| 43 protocol::ClientStub* client_stub)); | 43 protocol::ClientStub* client_stub)); |
| 44 | 44 |
| 45 // DesktopEnvironment implementation. | 45 // DesktopEnvironment implementation. |
| 46 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() OVERRIDE; | 46 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() OVERRIDE; |
| 47 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE; | 47 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE; |
| 48 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE; | 48 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE; |
| 49 virtual scoped_ptr<webrtc::ScreenCapturer> CreateVideoCapturer() OVERRIDE; | 49 virtual scoped_ptr<webrtc::DesktopCapturer> CreateVideoCapturer() OVERRIDE; |
| 50 virtual scoped_ptr<GnubbyAuthHandler> CreateGnubbyAuthHandler( | 50 virtual scoped_ptr<GnubbyAuthHandler> CreateGnubbyAuthHandler( |
| 51 protocol::ClientStub* client_stub) OVERRIDE; | 51 protocol::ClientStub* client_stub) OVERRIDE; |
| 52 virtual scoped_ptr<webrtc::MouseCursorMonitor> CreateMouseCursorMonitor() | 52 virtual scoped_ptr<webrtc::MouseCursorMonitor> CreateMouseCursorMonitor() |
| 53 OVERRIDE; | 53 OVERRIDE; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 class MockClientSessionControl : public ClientSessionControl { | 56 class MockClientSessionControl : public ClientSessionControl { |
| 57 public: | 57 public: |
| 58 MockClientSessionControl(); | 58 MockClientSessionControl(); |
| 59 virtual ~MockClientSessionControl(); | 59 virtual ~MockClientSessionControl(); |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 MOCK_METHOD2(Init, void(Callback* callback, Mode mode)); | 159 MOCK_METHOD2(Init, void(Callback* callback, Mode mode)); |
| 160 MOCK_METHOD0(Capture, void()); | 160 MOCK_METHOD0(Capture, void()); |
| 161 | 161 |
| 162 private: | 162 private: |
| 163 DISALLOW_COPY_AND_ASSIGN(MockMouseCursorMonitor); | 163 DISALLOW_COPY_AND_ASSIGN(MockMouseCursorMonitor); |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 } // namespace remoting | 166 } // namespace remoting |
| 167 | 167 |
| 168 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 168 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
| OLD | NEW |