Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: webrtc/p2p/base/faketransportcontroller.h

Issue 1548733002: Change DTLS default from 1.0 to 1.2 for webrtc. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: disable tests which fail under msan build. See webrtc bug 5381 Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/p2p/base/dtlstransportchannel_unittest.cc ('k') | webrtc/p2p/base/transportcontroller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/dtlstransportchannel_unittest.cc ('k') | webrtc/p2p/base/transportcontroller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698