| 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_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 5 #ifndef REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
| 6 #define REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 6 #define REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 | 180 |
| 181 private: | 181 private: |
| 182 DISALLOW_COPY_AND_ASSIGN(MockSession); | 182 DISALLOW_COPY_AND_ASSIGN(MockSession); |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 class MockSessionManager : public SessionManager { | 185 class MockSessionManager : public SessionManager { |
| 186 public: | 186 public: |
| 187 MockSessionManager(); | 187 MockSessionManager(); |
| 188 ~MockSessionManager() override; | 188 ~MockSessionManager() override; |
| 189 | 189 |
| 190 MOCK_METHOD2(Init, void(SignalStrategy*, Listener*)); | 190 MOCK_METHOD1(AcceptIncoming, void(const IncomingSessionCallback&)); |
| 191 void set_protocol_config(scoped_ptr<CandidateSessionConfig> config) override { | 191 void set_protocol_config(scoped_ptr<CandidateSessionConfig> config) override { |
| 192 } | 192 } |
| 193 MOCK_METHOD2(ConnectPtr, | 193 MOCK_METHOD2(ConnectPtr, |
| 194 Session*(const std::string& host_jid, | 194 Session*(const std::string& host_jid, |
| 195 Authenticator* authenticator)); | 195 Authenticator* authenticator)); |
| 196 MOCK_METHOD0(Close, void()); | 196 MOCK_METHOD0(Close, void()); |
| 197 MOCK_METHOD1(set_authenticator_factory_ptr, | 197 MOCK_METHOD1(set_authenticator_factory_ptr, |
| 198 void(AuthenticatorFactory* factory)); | 198 void(AuthenticatorFactory* factory)); |
| 199 scoped_ptr<Session> Connect( | 199 scoped_ptr<Session> Connect( |
| 200 const std::string& host_jid, | 200 const std::string& host_jid, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 // Runs tasks synchronously instead of posting them to |task_runner|. | 239 // Runs tasks synchronously instead of posting them to |task_runner|. |
| 240 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 240 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| 241 const tracked_objects::Location& from_here, | 241 const tracked_objects::Location& from_here, |
| 242 const base::Closure& task) override; | 242 const base::Closure& task) override; |
| 243 }; | 243 }; |
| 244 | 244 |
| 245 } // namespace protocol | 245 } // namespace protocol |
| 246 } // namespace remoting | 246 } // namespace remoting |
| 247 | 247 |
| 248 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 248 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
| OLD | NEW |