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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |