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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 int chosen_crypto_suite_ = rtc::SRTP_INVALID_CRYPTO_SUITE; | 325 int chosen_crypto_suite_ = rtc::SRTP_INVALID_CRYPTO_SUITE; |
326 int receiving_timeout_ = -1; | 326 int receiving_timeout_ = -1; |
327 bool gather_continually_ = false; | 327 bool gather_continually_ = false; |
328 IceRole role_ = ICEROLE_UNKNOWN; | 328 IceRole role_ = ICEROLE_UNKNOWN; |
329 uint64_t tiebreaker_ = 0; | 329 uint64_t tiebreaker_ = 0; |
330 std::string ice_ufrag_; | 330 std::string ice_ufrag_; |
331 std::string ice_pwd_; | 331 std::string ice_pwd_; |
332 std::string remote_ice_ufrag_; | 332 std::string remote_ice_ufrag_; |
333 std::string remote_ice_pwd_; | 333 std::string remote_ice_pwd_; |
334 IceMode remote_ice_mode_ = ICEMODE_FULL; | 334 IceMode remote_ice_mode_ = ICEMODE_FULL; |
335 rtc::SSLProtocolVersion ssl_max_version_ = rtc::SSL_PROTOCOL_DTLS_10; | 335 rtc::SSLProtocolVersion ssl_max_version_ = rtc::SSL_PROTOCOL_DTLS_12; |
336 rtc::SSLFingerprint dtls_fingerprint_; | 336 rtc::SSLFingerprint dtls_fingerprint_; |
337 rtc::SSLRole ssl_role_ = rtc::SSL_CLIENT; | 337 rtc::SSLRole ssl_role_ = rtc::SSL_CLIENT; |
338 size_t connection_count_ = 0; | 338 size_t connection_count_ = 0; |
339 IceGatheringState gathering_state_ = kIceGatheringNew; | 339 IceGatheringState gathering_state_ = kIceGatheringNew; |
340 bool had_connection_ = false; | 340 bool had_connection_ = false; |
341 }; | 341 }; |
342 | 342 |
343 // Fake transport class, which can be passed to anything that needs a Transport. | 343 // Fake transport class, which can be passed to anything that needs a Transport. |
344 // Can be informed of another FakeTransport via SetDestination (low-tech way | 344 // Can be informed of another FakeTransport via SetDestination (low-tech way |
345 // of doing candidates) | 345 // of doing candidates) |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 } | 446 } |
447 | 447 |
448 // Note, this is distinct from the Channel map owned by Transport. | 448 // Note, this is distinct from the Channel map owned by Transport. |
449 // This map just tracks the FakeTransportChannels created by this class. | 449 // This map just tracks the FakeTransportChannels created by this class. |
450 // It's mainly needed so that we can access a FakeTransportChannel directly, | 450 // It's mainly needed so that we can access a FakeTransportChannel directly, |
451 // even if wrapped by a DtlsTransportChannelWrapper. | 451 // even if wrapped by a DtlsTransportChannelWrapper. |
452 ChannelMap channels_; | 452 ChannelMap channels_; |
453 FakeTransport* dest_ = nullptr; | 453 FakeTransport* dest_ = nullptr; |
454 bool async_ = false; | 454 bool async_ = false; |
455 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; | 455 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; |
456 rtc::SSLProtocolVersion ssl_max_version_ = rtc::SSL_PROTOCOL_DTLS_10; | 456 rtc::SSLProtocolVersion ssl_max_version_ = rtc::SSL_PROTOCOL_DTLS_12; |
457 }; | 457 }; |
458 | 458 |
459 // Fake TransportController class, which can be passed into a BaseChannel object | 459 // Fake TransportController class, which can be passed into a BaseChannel object |
460 // for test purposes. Can be connected to other FakeTransportControllers via | 460 // for test purposes. Can be connected to other FakeTransportControllers via |
461 // Connect(). | 461 // Connect(). |
462 // | 462 // |
463 // This fake is unusual in that for the most part, it's implemented with the | 463 // This fake is unusual in that for the most part, it's implemented with the |
464 // real TransportController code, but with fake TransportChannels underneath. | 464 // real TransportController code, but with fake TransportChannels underneath. |
465 class FakeTransportController : public TransportController { | 465 class FakeTransportController : public TransportController { |
466 public: | 466 public: |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 } | 534 } |
535 } | 535 } |
536 | 536 |
537 private: | 537 private: |
538 bool fail_create_channel_; | 538 bool fail_create_channel_; |
539 }; | 539 }; |
540 | 540 |
541 } // namespace cricket | 541 } // namespace cricket |
542 | 542 |
543 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ | 543 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ |
OLD | NEW |