| 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/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" | |
| 17 #include "remoting/host/screen_resolution.h" | 16 #include "remoting/host/screen_resolution.h" |
| 18 #include "remoting/host/session_controller.h" | 17 #include "remoting/host/session_controller.h" |
| 19 #include "remoting/proto/control.pb.h" | 18 #include "remoting/proto/control.pb.h" |
| 20 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
| 21 | 20 |
| 22 namespace base { | 21 namespace base { |
| 23 class SingleThreadTaskRunner; | 22 class SingleThreadTaskRunner; |
| 24 } // namespace base | 23 } // namespace base |
| 25 | 24 |
| 26 namespace remoting { | 25 namespace remoting { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 47 class MockDisconnectWindow : public DisconnectWindow { | 46 class MockDisconnectWindow : public DisconnectWindow { |
| 48 public: | 47 public: |
| 49 MockDisconnectWindow(); | 48 MockDisconnectWindow(); |
| 50 virtual ~MockDisconnectWindow(); | 49 virtual ~MockDisconnectWindow(); |
| 51 | 50 |
| 52 MOCK_METHOD2(Show, bool(const base::Closure& disconnect_callback, | 51 MOCK_METHOD2(Show, bool(const base::Closure& disconnect_callback, |
| 53 const std::string& username)); | 52 const std::string& username)); |
| 54 MOCK_METHOD0(Hide, void()); | 53 MOCK_METHOD0(Hide, void()); |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 class MockLocalInputMonitor : public LocalInputMonitor { | |
| 58 public: | |
| 59 MockLocalInputMonitor(); | |
| 60 virtual ~MockLocalInputMonitor(); | |
| 61 | |
| 62 MOCK_METHOD2(Start, void(MouseMoveObserver* mouse_move_observer, | |
| 63 const base::Closure& disconnect_callback)); | |
| 64 MOCK_METHOD0(Stop, void()); | |
| 65 }; | |
| 66 | |
| 67 class MockContinueWindow : public ContinueWindow { | 56 class MockContinueWindow : public ContinueWindow { |
| 68 public: | 57 public: |
| 69 MockContinueWindow(); | 58 MockContinueWindow(); |
| 70 virtual ~MockContinueWindow(); | 59 virtual ~MockContinueWindow(); |
| 71 | 60 |
| 72 MOCK_METHOD1(Show, void( | 61 MOCK_METHOD1(Show, void( |
| 73 const remoting::ContinueWindow::ContinueSessionCallback& callback)); | 62 const remoting::ContinueWindow::ContinueSessionCallback& callback)); |
| 74 MOCK_METHOD0(Hide, void()); | 63 MOCK_METHOD0(Hide, void()); |
| 75 }; | 64 }; |
| 76 | 65 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 139 |
| 151 MOCK_METHOD1(SetScreenResolution, void(const ScreenResolution&)); | 140 MOCK_METHOD1(SetScreenResolution, void(const ScreenResolution&)); |
| 152 | 141 |
| 153 private: | 142 private: |
| 154 DISALLOW_COPY_AND_ASSIGN(MockSessionController); | 143 DISALLOW_COPY_AND_ASSIGN(MockSessionController); |
| 155 }; | 144 }; |
| 156 | 145 |
| 157 } // namespace remoting | 146 } // namespace remoting |
| 158 | 147 |
| 159 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 148 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
| OLD | NEW |