| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 DISALLOW_COPY_AND_ASSIGN(MockVideoStub); | 195 DISALLOW_COPY_AND_ASSIGN(MockVideoStub); |
| 196 }; | 196 }; |
| 197 | 197 |
| 198 class MockSession : public Session { | 198 class MockSession : public Session { |
| 199 public: | 199 public: |
| 200 MockSession(); | 200 MockSession(); |
| 201 ~MockSession() override; | 201 ~MockSession() override; |
| 202 | 202 |
| 203 MOCK_METHOD1(SetEventHandler, void(Session::EventHandler* event_handler)); | 203 MOCK_METHOD1(SetEventHandler, void(Session::EventHandler* event_handler)); |
| 204 MOCK_METHOD0(error, ErrorCode()); | 204 MOCK_METHOD0(error, ErrorCode()); |
| 205 MOCK_METHOD0(GetTransportSession, TransportSession*()); | 205 MOCK_METHOD0(GetTransportChannelFactory, StreamChannelFactory*()); |
| 206 MOCK_METHOD0(GetMultiplexedChannelFactory, StreamChannelFactory*()); |
| 206 MOCK_METHOD0(GetQuicChannelFactory, StreamChannelFactory*()); | 207 MOCK_METHOD0(GetQuicChannelFactory, StreamChannelFactory*()); |
| 207 MOCK_METHOD0(jid, const std::string&()); | 208 MOCK_METHOD0(jid, const std::string&()); |
| 208 MOCK_METHOD0(candidate_config, const CandidateSessionConfig*()); | 209 MOCK_METHOD0(candidate_config, const CandidateSessionConfig*()); |
| 209 MOCK_METHOD0(config, const SessionConfig&()); | 210 MOCK_METHOD0(config, const SessionConfig&()); |
| 210 MOCK_METHOD0(initiator_token, const std::string&()); | 211 MOCK_METHOD0(initiator_token, const std::string&()); |
| 211 MOCK_METHOD1(set_initiator_token, void(const std::string& initiator_token)); | 212 MOCK_METHOD1(set_initiator_token, void(const std::string& initiator_token)); |
| 212 MOCK_METHOD0(receiver_token, const std::string&()); | 213 MOCK_METHOD0(receiver_token, const std::string&()); |
| 213 MOCK_METHOD1(set_receiver_token, void(const std::string& receiver_token)); | 214 MOCK_METHOD1(set_receiver_token, void(const std::string& receiver_token)); |
| 214 MOCK_METHOD1(set_shared_secret, void(const std::string& secret)); | 215 MOCK_METHOD1(set_shared_secret, void(const std::string& secret)); |
| 215 MOCK_METHOD0(shared_secret, const std::string&()); | 216 MOCK_METHOD0(shared_secret, const std::string&()); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 // Runs tasks synchronously instead of posting them to |task_runner|. | 277 // Runs tasks synchronously instead of posting them to |task_runner|. |
| 277 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 278 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| 278 const tracked_objects::Location& from_here, | 279 const tracked_objects::Location& from_here, |
| 279 const base::Closure& task) override; | 280 const base::Closure& task) override; |
| 280 }; | 281 }; |
| 281 | 282 |
| 282 } // namespace protocol | 283 } // namespace protocol |
| 283 } // namespace remoting | 284 } // namespace remoting |
| 284 | 285 |
| 285 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 286 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
| OLD | NEW |