OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "remoting/host/capturer.h" | 8 #include "remoting/host/capturer.h" |
9 #include "remoting/host/curtain.h" | 9 #include "remoting/host/curtain.h" |
10 #include "remoting/host/chromoting_host_context.h" | 10 #include "remoting/host/chromoting_host_context.h" |
11 #include "remoting/host/client_session.h" | 11 #include "remoting/host/client_session.h" |
| 12 #include "remoting/host/event_executor.h" |
| 13 #include "remoting/host/user_authenticator.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
13 | 15 |
14 namespace remoting { | 16 namespace remoting { |
15 | 17 |
16 class MockCapturer : public Capturer { | 18 class MockCapturer : public Capturer { |
17 public: | 19 public: |
18 MockCapturer(); | 20 MockCapturer(); |
19 virtual ~MockCapturer(); | 21 virtual ~MockCapturer(); |
20 | 22 |
21 MOCK_METHOD0(ScreenConfigurationChanged, void()); | 23 MOCK_METHOD0(ScreenConfigurationChanged, void()); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 64 |
63 MOCK_METHOD1(LocalLoginSucceeded, | 65 MOCK_METHOD1(LocalLoginSucceeded, |
64 void(scoped_refptr<protocol::ConnectionToClient>)); | 66 void(scoped_refptr<protocol::ConnectionToClient>)); |
65 MOCK_METHOD1(LocalLoginFailed, | 67 MOCK_METHOD1(LocalLoginFailed, |
66 void(scoped_refptr<protocol::ConnectionToClient>)); | 68 void(scoped_refptr<protocol::ConnectionToClient>)); |
67 | 69 |
68 private: | 70 private: |
69 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); | 71 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); |
70 }; | 72 }; |
71 | 73 |
| 74 class MockEventExecutor : public EventExecutor { |
| 75 public: |
| 76 MockEventExecutor(); |
| 77 virtual ~MockEventExecutor(); |
| 78 |
| 79 MOCK_METHOD2(InjectKeyEvent, void(const protocol::KeyEvent* event, |
| 80 Task* done)); |
| 81 MOCK_METHOD2(InjectMouseEvent, void(const protocol::MouseEvent* event, |
| 82 Task* done)); |
| 83 |
| 84 private: |
| 85 DISALLOW_COPY_AND_ASSIGN(MockEventExecutor); |
| 86 }; |
| 87 |
| 88 class MockUserAuthenticator : public UserAuthenticator { |
| 89 public: |
| 90 MockUserAuthenticator(); |
| 91 virtual ~MockUserAuthenticator(); |
| 92 |
| 93 MOCK_METHOD2(Authenticate, bool(const std::string& username, |
| 94 const std::string& password)); |
| 95 |
| 96 private: |
| 97 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); |
| 98 }; |
| 99 |
72 } // namespace remoting | 100 } // namespace remoting |
73 | 101 |
74 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 102 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
OLD | NEW |