| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 class MockChromotingHostContext : public ChromotingHostContext { | 79 class MockChromotingHostContext : public ChromotingHostContext { |
| 80 public: | 80 public: |
| 81 MockChromotingHostContext(); | 81 MockChromotingHostContext(); |
| 82 virtual ~MockChromotingHostContext(); | 82 virtual ~MockChromotingHostContext(); |
| 83 | 83 |
| 84 MOCK_METHOD0(Start, bool()); | 84 MOCK_METHOD0(Start, bool()); |
| 85 MOCK_METHOD0(Stop, void()); | 85 MOCK_METHOD0(Stop, void()); |
| 86 MOCK_METHOD0(jingle_thread, JingleThread*()); | 86 MOCK_METHOD0(jingle_thread, JingleThread*()); |
| 87 MOCK_METHOD0(io_message_loop, base::MessageLoopProxy*()); |
| 87 MOCK_METHOD0(ui_message_loop, base::MessageLoopProxy*()); | 88 MOCK_METHOD0(ui_message_loop, base::MessageLoopProxy*()); |
| 88 MOCK_METHOD0(main_message_loop, MessageLoop*()); | 89 MOCK_METHOD0(main_message_loop, MessageLoop*()); |
| 89 MOCK_METHOD0(encode_message_loop, MessageLoop*()); | 90 MOCK_METHOD0(encode_message_loop, MessageLoop*()); |
| 90 MOCK_METHOD0(network_message_loop, base::MessageLoopProxy*()); | 91 MOCK_METHOD0(network_message_loop, base::MessageLoopProxy*()); |
| 91 | 92 |
| 92 private: | 93 private: |
| 93 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext); | 94 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext); |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 class MockClientSessionEventHandler : public ClientSession::EventHandler { | 97 class MockClientSessionEventHandler : public ClientSession::EventHandler { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 MOCK_METHOD2(Authenticate, bool(const std::string& username, | 135 MOCK_METHOD2(Authenticate, bool(const std::string& username, |
| 135 const std::string& password)); | 136 const std::string& password)); |
| 136 | 137 |
| 137 private: | 138 private: |
| 138 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); | 139 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); |
| 139 }; | 140 }; |
| 140 | 141 |
| 141 } // namespace remoting | 142 } // namespace remoting |
| 142 | 143 |
| 143 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 144 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
| OLD | NEW |