| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2017 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2017 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 return true; | 151 return true; |
| 152 } | 152 } |
| 153 | 153 |
| 154 rtc::Optional<int> GetRttEstimate() override { | 154 rtc::Optional<int> GetRttEstimate() override { |
| 155 return rtc::Optional<int>(); | 155 return rtc::Optional<int>(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 void SetMetricsObserver(webrtc::MetricsObserverInterface* observer) override { | 158 void SetMetricsObserver(webrtc::MetricsObserverInterface* observer) override { |
| 159 } | 159 } |
| 160 | 160 |
| 161 // Fake PacketTransportInterface implementation. | 161 // Fake PacketTransportInternal implementation. |
| 162 bool writable() const override { return writable_; } | 162 bool writable() const override { return writable_; } |
| 163 bool receiving() const override { return receiving_; } | 163 bool receiving() const override { return receiving_; } |
| 164 int SendPacket(const char* data, | 164 int SendPacket(const char* data, |
| 165 size_t len, | 165 size_t len, |
| 166 const rtc::PacketOptions& options, | 166 const rtc::PacketOptions& options, |
| 167 int flags) override { | 167 int flags) override { |
| 168 if (!dest_) { | 168 if (!dest_) { |
| 169 return -1; | 169 return -1; |
| 170 } | 170 } |
| 171 rtc::CopyOnWriteBuffer packet(data, len); | 171 rtc::CopyOnWriteBuffer packet(data, len); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 size_t connection_count_ = 0; | 231 size_t connection_count_ = 0; |
| 232 IceGatheringState gathering_state_ = kIceGatheringNew; | 232 IceGatheringState gathering_state_ = kIceGatheringNew; |
| 233 bool had_connection_ = false; | 233 bool had_connection_ = false; |
| 234 bool writable_ = false; | 234 bool writable_ = false; |
| 235 bool receiving_ = false; | 235 bool receiving_ = false; |
| 236 }; | 236 }; |
| 237 | 237 |
| 238 } // namespace cricket | 238 } // namespace cricket |
| 239 | 239 |
| 240 #endif // WEBRTC_P2P_BASE_FAKEICETRANSPORT_H_ | 240 #endif // WEBRTC_P2P_BASE_FAKEICETRANSPORT_H_ |
| OLD | NEW |