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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 } | 144 } |
145 void RemoveRemoteCandidate(const Candidate& candidate) override {} | 145 void RemoveRemoteCandidate(const Candidate& candidate) override {} |
146 | 146 |
147 bool GetStats(ConnectionInfos* infos) override { | 147 bool GetStats(ConnectionInfos* infos) override { |
148 ConnectionInfo info; | 148 ConnectionInfo info; |
149 infos->clear(); | 149 infos->clear(); |
150 infos->push_back(info); | 150 infos->push_back(info); |
151 return true; | 151 return true; |
152 } | 152 } |
153 | 153 |
154 rtc::Optional<int> GetRttEstimate() override { | |
155 return rtc::Optional<int>(); | |
156 } | |
157 | |
158 void SetMetricsObserver(webrtc::MetricsObserverInterface* observer) override { | 154 void SetMetricsObserver(webrtc::MetricsObserverInterface* observer) override { |
159 } | 155 } |
160 | 156 |
161 // Fake PacketTransportInterface implementation. | 157 // Fake PacketTransportInterface implementation. |
162 bool writable() const override { return writable_; } | 158 bool writable() const override { return writable_; } |
163 bool receiving() const override { return receiving_; } | 159 bool receiving() const override { return receiving_; } |
164 int SendPacket(const char* data, | 160 int SendPacket(const char* data, |
165 size_t len, | 161 size_t len, |
166 const rtc::PacketOptions& options, | 162 const rtc::PacketOptions& options, |
167 int flags) override { | 163 int flags) override { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 size_t connection_count_ = 0; | 227 size_t connection_count_ = 0; |
232 IceGatheringState gathering_state_ = kIceGatheringNew; | 228 IceGatheringState gathering_state_ = kIceGatheringNew; |
233 bool had_connection_ = false; | 229 bool had_connection_ = false; |
234 bool writable_ = false; | 230 bool writable_ = false; |
235 bool receiving_ = false; | 231 bool receiving_ = false; |
236 }; | 232 }; |
237 | 233 |
238 } // namespace cricket | 234 } // namespace cricket |
239 | 235 |
240 #endif // WEBRTC_P2P_BASE_FAKEICETRANSPORT_H_ | 236 #endif // WEBRTC_P2P_BASE_FAKEICETRANSPORT_H_ |
OLD | NEW |