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