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

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

Issue 9958028: Add a new GetNegotiatedProtocol method to StreamSocket and implement in all subclasses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 8 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') | remoting/protocol/pepper_transport_socket_adapter.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 #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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 int64 FakeSocket::NumBytesRead() const { 152 int64 FakeSocket::NumBytesRead() const {
153 NOTIMPLEMENTED(); 153 NOTIMPLEMENTED();
154 return 0; 154 return 0;
155 } 155 }
156 156
157 base::TimeDelta FakeSocket::GetConnectTimeMicros() const { 157 base::TimeDelta FakeSocket::GetConnectTimeMicros() const {
158 NOTIMPLEMENTED(); 158 NOTIMPLEMENTED();
159 return base::TimeDelta(); 159 return base::TimeDelta();
160 } 160 }
161 161
162 net::NextProto FakeSocket::GetNegotiatedProtocol() const {
163 NOTIMPLEMENTED();
164 return net::kProtoUnknown;
165 }
166
162 FakeUdpSocket::FakeUdpSocket() 167 FakeUdpSocket::FakeUdpSocket()
163 : read_pending_(false), 168 : read_pending_(false),
164 input_pos_(0), 169 input_pos_(0),
165 message_loop_(MessageLoop::current()) { 170 message_loop_(MessageLoop::current()) {
166 } 171 }
167 172
168 FakeUdpSocket::~FakeUdpSocket() { 173 FakeUdpSocket::~FakeUdpSocket() {
169 EXPECT_EQ(message_loop_, MessageLoop::current()); 174 EXPECT_EQ(message_loop_, MessageLoop::current());
170 } 175 }
171 176
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 void FakeSession::set_config(const SessionConfig& config) { 288 void FakeSession::set_config(const SessionConfig& config) {
284 config_ = config; 289 config_ = config;
285 } 290 }
286 291
287 void FakeSession::Close() { 292 void FakeSession::Close() {
288 closed_ = true; 293 closed_ = true;
289 } 294 }
290 295
291 } // namespace protocol 296 } // namespace protocol
292 } // namespace remoting 297 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/fake_session.h ('k') | remoting/protocol/pepper_transport_socket_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698