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

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

Issue 8619011: Use Authenticator interface in Session and SessionManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unittests Created 9 years 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/content_description.cc ('k') | remoting/protocol/fake_session.cc » ('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) 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_PROTOCOL_FAKE_SESSION_H_ 5 #ifndef REMOTING_PROTOCOL_FAKE_SESSION_H_
6 #define REMOTING_PROTOCOL_FAKE_SESSION_H_ 6 #define REMOTING_PROTOCOL_FAKE_SESSION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 const std::string& name, 149 const std::string& name,
150 const DatagramChannelCallback& callback) OVERRIDE; 150 const DatagramChannelCallback& callback) OVERRIDE;
151 virtual void CancelChannelCreation(const std::string& name) OVERRIDE; 151 virtual void CancelChannelCreation(const std::string& name) OVERRIDE;
152 152
153 virtual const std::string& jid() OVERRIDE; 153 virtual const std::string& jid() OVERRIDE;
154 154
155 virtual const CandidateSessionConfig* candidate_config() OVERRIDE; 155 virtual const CandidateSessionConfig* candidate_config() OVERRIDE;
156 virtual const SessionConfig& config() OVERRIDE; 156 virtual const SessionConfig& config() OVERRIDE;
157 virtual void set_config(const SessionConfig& config) OVERRIDE; 157 virtual void set_config(const SessionConfig& config) OVERRIDE;
158 158
159 virtual const std::string& initiator_token() OVERRIDE;
160 virtual void set_initiator_token(const std::string& initiator_token) OVERRIDE;
161 virtual const std::string& receiver_token() OVERRIDE;
162 virtual void set_receiver_token(const std::string& receiver_token) OVERRIDE;
163
164 virtual void set_shared_secret(const std::string& secret) OVERRIDE;
165 virtual const std::string& shared_secret() OVERRIDE;
166
167 virtual void Close() OVERRIDE; 159 virtual void Close() OVERRIDE;
168 160
169 public: 161 public:
170 StateChangeCallback callback_; 162 StateChangeCallback callback_;
171 scoped_ptr<const CandidateSessionConfig> candidate_config_; 163 scoped_ptr<const CandidateSessionConfig> candidate_config_;
172 SessionConfig config_; 164 SessionConfig config_;
173 MessageLoop* message_loop_; 165 MessageLoop* message_loop_;
174 166
175 std::map<std::string, FakeSocket*> stream_channels_; 167 std::map<std::string, FakeSocket*> stream_channels_;
176 std::map<std::string, FakeUdpSocket*> datagram_channels_; 168 std::map<std::string, FakeUdpSocket*> datagram_channels_;
177 169
178 std::string initiator_token_;
179 std::string receiver_token_;
180
181 std::string shared_secret_;
182
183 std::string jid_; 170 std::string jid_;
184 171
185 Session::Error error_; 172 Session::Error error_;
186 bool closed_; 173 bool closed_;
187 174
188 DISALLOW_COPY_AND_ASSIGN(FakeSession); 175 DISALLOW_COPY_AND_ASSIGN(FakeSession);
189 }; 176 };
190 177
191 } // namespace protocol 178 } // namespace protocol
192 } // namespace remoting 179 } // namespace remoting
193 180
194 #endif // REMOTING_PROTOCOL_FAKE_SESSION_H_ 181 #endif // REMOTING_PROTOCOL_FAKE_SESSION_H_
OLDNEW
« no previous file with comments | « remoting/protocol/content_description.cc ('k') | remoting/protocol/fake_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698