Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: remoting/protocol/protocol_mock_objects.h

Issue 10823323: Add support for multiplexed channels in remoting::protocol::Session interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/protobuf_video_writer.cc ('k') | remoting/protocol/session.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <string> 8 #include <string>
9 9
10 #include "net/base/ip_endpoint.h" 10 #include "net/base/ip_endpoint.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 DISALLOW_COPY_AND_ASSIGN(MockVideoStub); 145 DISALLOW_COPY_AND_ASSIGN(MockVideoStub);
146 }; 146 };
147 147
148 class MockSession : public Session { 148 class MockSession : public Session {
149 public: 149 public:
150 MockSession(); 150 MockSession();
151 virtual ~MockSession(); 151 virtual ~MockSession();
152 152
153 MOCK_METHOD1(SetEventHandler, void(Session::EventHandler* event_handler)); 153 MOCK_METHOD1(SetEventHandler, void(Session::EventHandler* event_handler));
154 MOCK_METHOD0(error, ErrorCode()); 154 MOCK_METHOD0(error, ErrorCode());
155 MOCK_METHOD2(CreateStreamChannel, void( 155 MOCK_METHOD0(GetTransportChannelFactory, ChannelFactory*());
156 const std::string& name, const StreamChannelCallback& callback)); 156 MOCK_METHOD0(GetMultiplexedChannelFactory, ChannelFactory*());
157 MOCK_METHOD2(CreateDatagramChannel, void(
158 const std::string& name, const DatagramChannelCallback& callback));
159 MOCK_METHOD1(CancelChannelCreation, void(const std::string& name));
160 MOCK_METHOD0(jid, const std::string&()); 157 MOCK_METHOD0(jid, const std::string&());
161 MOCK_METHOD0(candidate_config, const CandidateSessionConfig*()); 158 MOCK_METHOD0(candidate_config, const CandidateSessionConfig*());
162 MOCK_METHOD0(config, const SessionConfig&()); 159 MOCK_METHOD0(config, const SessionConfig&());
163 MOCK_METHOD1(set_config, void(const SessionConfig& config)); 160 MOCK_METHOD1(set_config, void(const SessionConfig& config));
164 MOCK_METHOD0(initiator_token, const std::string&()); 161 MOCK_METHOD0(initiator_token, const std::string&());
165 MOCK_METHOD1(set_initiator_token, void(const std::string& initiator_token)); 162 MOCK_METHOD1(set_initiator_token, void(const std::string& initiator_token));
166 MOCK_METHOD0(receiver_token, const std::string&()); 163 MOCK_METHOD0(receiver_token, const std::string&());
167 MOCK_METHOD1(set_receiver_token, void(const std::string& receiver_token)); 164 MOCK_METHOD1(set_receiver_token, void(const std::string& receiver_token));
168 MOCK_METHOD1(set_shared_secret, void(const std::string& secret)); 165 MOCK_METHOD1(set_shared_secret, void(const std::string& secret));
169 MOCK_METHOD0(shared_secret, const std::string&()); 166 MOCK_METHOD0(shared_secret, const std::string&());
(...skipping 28 matching lines...) Expand all
198 }; 195 };
199 196
200 private: 197 private:
201 DISALLOW_COPY_AND_ASSIGN(MockSessionManager); 198 DISALLOW_COPY_AND_ASSIGN(MockSessionManager);
202 }; 199 };
203 200
204 } // namespace protocol 201 } // namespace protocol
205 } // namespace remoting 202 } // namespace remoting
206 203
207 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 204 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/protocol/protobuf_video_writer.cc ('k') | remoting/protocol/session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698