OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 const std::string& transport_name() const override { return transport_name_; } | 50 const std::string& transport_name() const override { return transport_name_; } |
51 int component() const override { return 0; } | 51 int component() const override { return 0; } |
52 void SetIceRole(IceRole role) override {} | 52 void SetIceRole(IceRole role) override {} |
53 void SetIceTiebreaker(uint64_t tiebreaker) override {} | 53 void SetIceTiebreaker(uint64_t tiebreaker) override {} |
54 // The ufrag and pwd in |ice_params| must be set | 54 // The ufrag and pwd in |ice_params| must be set |
55 // before candidate gathering can start. | 55 // before candidate gathering can start. |
56 void SetIceParameters(const IceParameters& ice_params) override {} | 56 void SetIceParameters(const IceParameters& ice_params) override {} |
57 void SetRemoteIceParameters(const IceParameters& ice_params) override {} | 57 void SetRemoteIceParameters(const IceParameters& ice_params) override {} |
58 void SetRemoteIceMode(IceMode mode) override {} | 58 void SetRemoteIceMode(IceMode mode) override {} |
59 void SetIceConfig(const IceConfig& config) override {} | 59 void SetIceConfig(const IceConfig& config) override {} |
| 60 rtc::Optional<int> GetRttEstimate() override { |
| 61 return rtc::Optional<int>(); |
| 62 } |
60 void MaybeStartGathering() override {} | 63 void MaybeStartGathering() override {} |
61 void SetMetricsObserver(webrtc::MetricsObserverInterface* observer) override { | 64 void SetMetricsObserver(webrtc::MetricsObserverInterface* observer) override { |
62 } | 65 } |
63 void AddRemoteCandidate(const Candidate& candidate) override {} | 66 void AddRemoteCandidate(const Candidate& candidate) override {} |
64 void RemoveRemoteCandidate(const Candidate& candidate) override {} | 67 void RemoveRemoteCandidate(const Candidate& candidate) override {} |
65 IceGatheringState gathering_state() const override { | 68 IceGatheringState gathering_state() const override { |
66 return IceGatheringState::kIceGatheringComplete; | 69 return IceGatheringState::kIceGatheringComplete; |
67 } | 70 } |
68 | 71 |
69 bool receiving() const override { return true; } | 72 bool receiving() const override { return true; } |
70 bool writable() const override { return true; } | 73 bool writable() const override { return true; } |
71 | 74 |
72 private: | 75 private: |
73 std::string transport_name_; | 76 std::string transport_name_; |
74 }; | 77 }; |
75 | 78 |
76 } // namespace cricket | 79 } // namespace cricket |
77 | 80 |
78 #endif // WEBRTC_P2P_BASE_MOCKICETRANSPORT_H_ | 81 #endif // WEBRTC_P2P_BASE_MOCKICETRANSPORT_H_ |
OLD | NEW |