| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2009 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 } | 81 } |
| 82 | 82 |
| 83 return TransportChannelState::STATE_CONNECTING; | 83 return TransportChannelState::STATE_CONNECTING; |
| 84 } | 84 } |
| 85 | 85 |
| 86 void SetIceRole(IceRole role) override { role_ = role; } | 86 void SetIceRole(IceRole role) override { role_ = role; } |
| 87 IceRole GetIceRole() const override { return role_; } | 87 IceRole GetIceRole() const override { return role_; } |
| 88 void SetIceTiebreaker(uint64_t tiebreaker) override { | 88 void SetIceTiebreaker(uint64_t tiebreaker) override { |
| 89 tiebreaker_ = tiebreaker; | 89 tiebreaker_ = tiebreaker; |
| 90 } | 90 } |
| 91 void SetIceCredentials(const std::string& ice_ufrag, | 91 void SetIceParameters(const IceParameters& ice_params) override { |
| 92 const std::string& ice_pwd) override { | 92 ice_ufrag_ = ice_params.ufrag; |
| 93 ice_ufrag_ = ice_ufrag; | 93 ice_pwd_ = ice_params.pwd; |
| 94 ice_pwd_ = ice_pwd; | |
| 95 } | 94 } |
| 96 void SetRemoteIceCredentials(const std::string& ice_ufrag, | 95 void SetRemoteIceParameters(const IceParameters& params) override { |
| 97 const std::string& ice_pwd) override { | 96 remote_ice_ufrag_ = params.ufrag; |
| 98 remote_ice_ufrag_ = ice_ufrag; | 97 remote_ice_pwd_ = params.pwd; |
| 99 remote_ice_pwd_ = ice_pwd; | |
| 100 } | 98 } |
| 101 | 99 |
| 102 void SetRemoteIceMode(IceMode mode) override { remote_ice_mode_ = mode; } | 100 void SetRemoteIceMode(IceMode mode) override { remote_ice_mode_ = mode; } |
| 103 bool SetRemoteFingerprint(const std::string& alg, | 101 bool SetRemoteFingerprint(const std::string& alg, |
| 104 const uint8_t* digest, | 102 const uint8_t* digest, |
| 105 size_t digest_len) override { | 103 size_t digest_len) override { |
| 106 dtls_fingerprint_ = rtc::SSLFingerprint(alg, digest, digest_len); | 104 dtls_fingerprint_ = rtc::SSLFingerprint(alg, digest, digest_len); |
| 107 return true; | 105 return true; |
| 108 } | 106 } |
| 109 bool SetSslRole(rtc::SSLRole role) override { | 107 bool SetSslRole(rtc::SSLRole role) override { |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 } | 601 } |
| 604 } | 602 } |
| 605 | 603 |
| 606 private: | 604 private: |
| 607 bool fail_create_channel_; | 605 bool fail_create_channel_; |
| 608 }; | 606 }; |
| 609 | 607 |
| 610 } // namespace cricket | 608 } // namespace cricket |
| 611 | 609 |
| 612 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ | 610 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ |
| OLD | NEW |