| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 DISALLOW_COPY_AND_ASSIGN(MockVideoStub); | 160 DISALLOW_COPY_AND_ASSIGN(MockVideoStub); |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 class MockSession : public Session { | 163 class MockSession : public Session { |
| 164 public: | 164 public: |
| 165 MockSession(); | 165 MockSession(); |
| 166 virtual ~MockSession(); | 166 virtual ~MockSession(); |
| 167 | 167 |
| 168 MOCK_METHOD1(SetEventHandler, void(Session::EventHandler* event_handler)); | 168 MOCK_METHOD1(SetEventHandler, void(Session::EventHandler* event_handler)); |
| 169 MOCK_METHOD0(error, ErrorCode()); | 169 MOCK_METHOD0(error, ErrorCode()); |
| 170 MOCK_METHOD0(GetTransportChannelFactory, StreamChannelFactory*()); | 170 MOCK_METHOD0(GetTransportChannelFactory, ChannelFactory*()); |
| 171 MOCK_METHOD0(GetMultiplexedChannelFactory, StreamChannelFactory*()); | 171 MOCK_METHOD0(GetMultiplexedChannelFactory, ChannelFactory*()); |
| 172 MOCK_METHOD0(jid, const std::string&()); | 172 MOCK_METHOD0(jid, const std::string&()); |
| 173 MOCK_METHOD0(candidate_config, const CandidateSessionConfig*()); | 173 MOCK_METHOD0(candidate_config, const CandidateSessionConfig*()); |
| 174 MOCK_METHOD0(config, const SessionConfig&()); | 174 MOCK_METHOD0(config, const SessionConfig&()); |
| 175 MOCK_METHOD1(set_config, void(const SessionConfig& config)); | 175 MOCK_METHOD1(set_config, void(const SessionConfig& config)); |
| 176 MOCK_METHOD0(initiator_token, const std::string&()); | 176 MOCK_METHOD0(initiator_token, const std::string&()); |
| 177 MOCK_METHOD1(set_initiator_token, void(const std::string& initiator_token)); | 177 MOCK_METHOD1(set_initiator_token, void(const std::string& initiator_token)); |
| 178 MOCK_METHOD0(receiver_token, const std::string&()); | 178 MOCK_METHOD0(receiver_token, const std::string&()); |
| 179 MOCK_METHOD1(set_receiver_token, void(const std::string& receiver_token)); | 179 MOCK_METHOD1(set_receiver_token, void(const std::string& receiver_token)); |
| 180 MOCK_METHOD1(set_shared_secret, void(const std::string& secret)); | 180 MOCK_METHOD1(set_shared_secret, void(const std::string& secret)); |
| 181 MOCK_METHOD0(shared_secret, const std::string&()); | 181 MOCK_METHOD0(shared_secret, const std::string&()); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 virtual void PostTask( | 244 virtual void PostTask( |
| 245 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 245 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| 246 const tracked_objects::Location& from_here, | 246 const tracked_objects::Location& from_here, |
| 247 const base::Closure& task) OVERRIDE; | 247 const base::Closure& task) OVERRIDE; |
| 248 }; | 248 }; |
| 249 | 249 |
| 250 } // namespace protocol | 250 } // namespace protocol |
| 251 } // namespace remoting | 251 } // namespace remoting |
| 252 | 252 |
| 253 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 253 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
| OLD | NEW |