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/capturer.h" | 9 #include "remoting/host/capturer.h" |
10 #include "remoting/host/curtain.h" | 10 #include "remoting/host/curtain.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 }; | 82 }; |
83 | 83 |
84 class MockChromotingHostContext : public ChromotingHostContext { | 84 class MockChromotingHostContext : public ChromotingHostContext { |
85 public: | 85 public: |
86 MockChromotingHostContext(); | 86 MockChromotingHostContext(); |
87 virtual ~MockChromotingHostContext(); | 87 virtual ~MockChromotingHostContext(); |
88 | 88 |
89 MOCK_METHOD0(Start, bool()); | 89 MOCK_METHOD0(Start, bool()); |
90 MOCK_METHOD0(Stop, void()); | 90 MOCK_METHOD0(Stop, void()); |
91 MOCK_METHOD0(jingle_thread, JingleThread*()); | 91 MOCK_METHOD0(jingle_thread, JingleThread*()); |
92 MOCK_METHOD0(io_message_loop, base::MessageLoopProxy*()); | 92 MOCK_METHOD0(ui_task_runner, base::SingleThreadTaskRunner*()); |
93 MOCK_METHOD0(ui_message_loop, base::MessageLoopProxy*()); | 93 MOCK_METHOD0(capture_task_runner, base::SingleThreadTaskRunner*()); |
94 MOCK_METHOD0(main_message_loop, MessageLoop*()); | 94 MOCK_METHOD0(encode_task_runner, base::SingleThreadTaskRunner*()); |
95 MOCK_METHOD0(encode_message_loop, MessageLoop*()); | 95 MOCK_METHOD0(network_task_runner, base::SingleThreadTaskRunner*()); |
96 MOCK_METHOD0(network_message_loop, base::MessageLoopProxy*()); | 96 MOCK_METHOD0(io_task_runner, base::SingleThreadTaskRunner*()); |
97 | 97 |
98 private: | 98 private: |
99 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext); | 99 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext); |
100 }; | 100 }; |
101 | 101 |
102 class MockClientSessionEventHandler : public ClientSession::EventHandler { | 102 class MockClientSessionEventHandler : public ClientSession::EventHandler { |
103 public: | 103 public: |
104 MockClientSessionEventHandler(); | 104 MockClientSessionEventHandler(); |
105 virtual ~MockClientSessionEventHandler(); | 105 virtual ~MockClientSessionEventHandler(); |
106 | 106 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 MOCK_METHOD2(Authenticate, bool(const std::string& username, | 162 MOCK_METHOD2(Authenticate, bool(const std::string& username, |
163 const std::string& password)); | 163 const std::string& password)); |
164 | 164 |
165 private: | 165 private: |
166 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); | 166 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); |
167 }; | 167 }; |
168 | 168 |
169 } // namespace remoting | 169 } // namespace remoting |
170 | 170 |
171 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 171 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
OLD | NEW |