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

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

Issue 10690122: Change SpdySession::GetSSLInfo to get the SSLInfo from the underlying socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: FIx curvercp Created 8 years, 5 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/fake_session.h ('k') | no next file » | 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 #include "remoting/protocol/fake_session.h" 5 #include "remoting/protocol/fake_session.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "net/base/address_list.h" 9 #include "net/base/address_list.h"
10 #include "net/base/io_buffer.h" 10 #include "net/base/io_buffer.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 int64 FakeSocket::NumBytesRead() const { 150 int64 FakeSocket::NumBytesRead() const {
151 NOTIMPLEMENTED(); 151 NOTIMPLEMENTED();
152 return 0; 152 return 0;
153 } 153 }
154 154
155 base::TimeDelta FakeSocket::GetConnectTimeMicros() const { 155 base::TimeDelta FakeSocket::GetConnectTimeMicros() const {
156 NOTIMPLEMENTED(); 156 NOTIMPLEMENTED();
157 return base::TimeDelta(); 157 return base::TimeDelta();
158 } 158 }
159 159
160 bool FakeSocket::WasNpnNegotiated() const {
161 return false;
162 }
163
160 net::NextProto FakeSocket::GetNegotiatedProtocol() const { 164 net::NextProto FakeSocket::GetNegotiatedProtocol() const {
161 NOTIMPLEMENTED(); 165 NOTIMPLEMENTED();
162 return net::kProtoUnknown; 166 return net::kProtoUnknown;
163 } 167 }
164 168
169 bool FakeSocket::GetSSLInfo(net::SSLInfo* ssl_info) {
170 return false;
171 }
172
165 FakeUdpSocket::FakeUdpSocket() 173 FakeUdpSocket::FakeUdpSocket()
166 : read_pending_(false), 174 : read_pending_(false),
167 input_pos_(0), 175 input_pos_(0),
168 message_loop_(MessageLoop::current()) { 176 message_loop_(MessageLoop::current()) {
169 } 177 }
170 178
171 FakeUdpSocket::~FakeUdpSocket() { 179 FakeUdpSocket::~FakeUdpSocket() {
172 EXPECT_EQ(message_loop_, MessageLoop::current()); 180 EXPECT_EQ(message_loop_, MessageLoop::current());
173 } 181 }
174 182
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 void FakeSession::set_config(const SessionConfig& config) { 291 void FakeSession::set_config(const SessionConfig& config) {
284 config_ = config; 292 config_ = config;
285 } 293 }
286 294
287 void FakeSession::Close() { 295 void FakeSession::Close() {
288 closed_ = true; 296 closed_ = true;
289 } 297 }
290 298
291 } // namespace protocol 299 } // namespace protocol
292 } // namespace remoting 300 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/fake_session.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698