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 #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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 bool FakeSocket::WasEverUsed() const { | 189 bool FakeSocket::WasEverUsed() const { |
190 NOTIMPLEMENTED(); | 190 NOTIMPLEMENTED(); |
191 return true; | 191 return true; |
192 } | 192 } |
193 | 193 |
194 bool FakeSocket::UsingTCPFastOpen() const { | 194 bool FakeSocket::UsingTCPFastOpen() const { |
195 NOTIMPLEMENTED(); | 195 NOTIMPLEMENTED(); |
196 return true; | 196 return true; |
197 } | 197 } |
198 | 198 |
199 int64 FakeSocket::NumBytesRead() const { | |
200 NOTIMPLEMENTED(); | |
201 return 0; | |
202 } | |
203 | |
204 base::TimeDelta FakeSocket::GetConnectTimeMicros() const { | |
205 NOTIMPLEMENTED(); | |
206 return base::TimeDelta(); | |
207 } | |
208 | |
209 bool FakeSocket::WasNpnNegotiated() const { | 199 bool FakeSocket::WasNpnNegotiated() const { |
210 return false; | 200 return false; |
211 } | 201 } |
212 | 202 |
213 net::NextProto FakeSocket::GetNegotiatedProtocol() const { | 203 net::NextProto FakeSocket::GetNegotiatedProtocol() const { |
214 NOTIMPLEMENTED(); | 204 NOTIMPLEMENTED(); |
215 return net::kProtoUnknown; | 205 return net::kProtoUnknown; |
216 } | 206 } |
217 | 207 |
218 bool FakeSocket::GetSSLInfo(net::SSLInfo* ssl_info) { | 208 bool FakeSocket::GetSSLInfo(net::SSLInfo* ssl_info) { |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 callback.Run(scoped_ptr<net::Socket>(datagram_channels_[name])); | 380 callback.Run(scoped_ptr<net::Socket>(datagram_channels_[name])); |
391 } | 381 } |
392 | 382 |
393 void FakeSession::CancelChannelCreation(const std::string& name) { | 383 void FakeSession::CancelChannelCreation(const std::string& name) { |
394 stream_channels_.erase(name); | 384 stream_channels_.erase(name); |
395 datagram_channels_.erase(name); | 385 datagram_channels_.erase(name); |
396 } | 386 } |
397 | 387 |
398 } // namespace protocol | 388 } // namespace protocol |
399 } // namespace remoting | 389 } // namespace remoting |
OLD | NEW |