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/access_verifier.h" | 8 #include "remoting/host/access_verifier.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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 public: | 57 public: |
58 MockChromotingHostContext(); | 58 MockChromotingHostContext(); |
59 virtual ~MockChromotingHostContext(); | 59 virtual ~MockChromotingHostContext(); |
60 | 60 |
61 MOCK_METHOD0(Start, void()); | 61 MOCK_METHOD0(Start, void()); |
62 MOCK_METHOD0(Stop, void()); | 62 MOCK_METHOD0(Stop, void()); |
63 MOCK_METHOD0(jingle_thread, JingleThread*()); | 63 MOCK_METHOD0(jingle_thread, JingleThread*()); |
64 MOCK_METHOD0(main_message_loop, MessageLoop*()); | 64 MOCK_METHOD0(main_message_loop, MessageLoop*()); |
65 MOCK_METHOD0(encode_message_loop, MessageLoop*()); | 65 MOCK_METHOD0(encode_message_loop, MessageLoop*()); |
66 MOCK_METHOD0(network_message_loop, MessageLoop*()); | 66 MOCK_METHOD0(network_message_loop, MessageLoop*()); |
| 67 MOCK_METHOD0(ui_message_loop, MessageLoop*()); |
67 | 68 |
68 private: | 69 private: |
69 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext); | 70 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext); |
70 }; | 71 }; |
71 | 72 |
72 class MockClientSessionEventHandler : public ClientSession::EventHandler { | 73 class MockClientSessionEventHandler : public ClientSession::EventHandler { |
73 public: | 74 public: |
74 MockClientSessionEventHandler(); | 75 MockClientSessionEventHandler(); |
75 virtual ~MockClientSessionEventHandler(); | 76 virtual ~MockClientSessionEventHandler(); |
76 | 77 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 MOCK_METHOD2(VerifyPermissions, bool(const std::string& client_jid, | 118 MOCK_METHOD2(VerifyPermissions, bool(const std::string& client_jid, |
118 const std::string& token)); | 119 const std::string& token)); |
119 | 120 |
120 private: | 121 private: |
121 DISALLOW_COPY_AND_ASSIGN(MockAccessVerifier); | 122 DISALLOW_COPY_AND_ASSIGN(MockAccessVerifier); |
122 }; | 123 }; |
123 | 124 |
124 } // namespace remoting | 125 } // namespace remoting |
125 | 126 |
126 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 127 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
OLD | NEW |