| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // MSVC++ requires this to be set before any other includes to get M_PI. | 5 // MSVC++ requires this to be set before any other includes to get M_PI. |
| 6 #define _USE_MATH_DEFINES | 6 #define _USE_MATH_DEFINES |
| 7 | 7 |
| 8 #include "remoting/test/fake_socket_factory.h" | 8 #include "remoting/test/fake_socket_factory.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 rtc::AsyncPacketSocket::State FakeUdpSocket::GetState() const { | 144 rtc::AsyncPacketSocket::State FakeUdpSocket::GetState() const { |
| 145 return state_; | 145 return state_; |
| 146 } | 146 } |
| 147 | 147 |
| 148 int FakeUdpSocket::GetOption(rtc::Socket::Option option, int* value) { | 148 int FakeUdpSocket::GetOption(rtc::Socket::Option option, int* value) { |
| 149 NOTIMPLEMENTED(); | 149 NOTIMPLEMENTED(); |
| 150 return -1; | 150 return -1; |
| 151 } | 151 } |
| 152 | 152 |
| 153 int FakeUdpSocket::SetOption(rtc::Socket::Option option, int value) { | 153 int FakeUdpSocket::SetOption(rtc::Socket::Option option, int value) { |
| 154 NOTIMPLEMENTED(); | 154 // All options are currently ignored. |
| 155 return -1; | 155 return 0; |
| 156 } | 156 } |
| 157 | 157 |
| 158 int FakeUdpSocket::GetError() const { | 158 int FakeUdpSocket::GetError() const { |
| 159 return 0; | 159 return 0; |
| 160 } | 160 } |
| 161 | 161 |
| 162 void FakeUdpSocket::SetError(int error) { | 162 void FakeUdpSocket::SetError(int error) { |
| 163 NOTREACHED(); | 163 NOTREACHED(); |
| 164 } | 164 } |
| 165 | 165 |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 } | 358 } |
| 359 | 359 |
| 360 void FakePacketSocketFactory::ResetStats() { | 360 void FakePacketSocketFactory::ResetStats() { |
| 361 total_packets_dropped_ = 0; | 361 total_packets_dropped_ = 0; |
| 362 total_packets_received_ = 0; | 362 total_packets_received_ = 0; |
| 363 total_buffer_delay_ = base::TimeDelta(); | 363 total_buffer_delay_ = base::TimeDelta(); |
| 364 max_buffer_delay_ = base::TimeDelta(); | 364 max_buffer_delay_ = base::TimeDelta(); |
| 365 } | 365 } |
| 366 | 366 |
| 367 } // namespace remoting | 367 } // namespace remoting |
| OLD | NEW |