OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2011 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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 | 634 |
635 // Create two channels with DTLS 1.0 and check ciphers. | 635 // Create two channels with DTLS 1.0 and check ciphers. |
636 TEST_F(DtlsTransportChannelTest, TestDtls12None) { | 636 TEST_F(DtlsTransportChannelTest, TestDtls12None) { |
637 MAYBE_SKIP_TEST(HaveDtls); | 637 MAYBE_SKIP_TEST(HaveDtls); |
638 SetChannelCount(2); | 638 SetChannelCount(2); |
639 PrepareDtls(true, true, rtc::KT_DEFAULT); | 639 PrepareDtls(true, true, rtc::KT_DEFAULT); |
640 SetMaxProtocolVersions(rtc::SSL_PROTOCOL_DTLS_10, rtc::SSL_PROTOCOL_DTLS_10); | 640 SetMaxProtocolVersions(rtc::SSL_PROTOCOL_DTLS_10, rtc::SSL_PROTOCOL_DTLS_10); |
641 ASSERT_TRUE(Connect()); | 641 ASSERT_TRUE(Connect()); |
642 } | 642 } |
643 | 643 |
| 644 #if defined(MEMORY_SANITIZER) |
| 645 // Fails under MemorySanitizer: |
| 646 // See https://code.google.com/p/webrtc/issues/detail?id=5381. |
| 647 #define MAYBE_TestDtls12Both DISABLED_TestDtls12Both |
| 648 #else |
| 649 #define MAYBE_TestDtls12Both TestDtls12Both |
| 650 #endif |
644 // Create two channels with DTLS 1.2 and check ciphers. | 651 // Create two channels with DTLS 1.2 and check ciphers. |
645 TEST_F(DtlsTransportChannelTest, TestDtls12Both) { | 652 TEST_F(DtlsTransportChannelTest, MAYBE_TestDtls12Both) { |
646 MAYBE_SKIP_TEST(HaveDtls); | 653 MAYBE_SKIP_TEST(HaveDtls); |
647 SetChannelCount(2); | 654 SetChannelCount(2); |
648 PrepareDtls(true, true, rtc::KT_DEFAULT); | 655 PrepareDtls(true, true, rtc::KT_DEFAULT); |
649 SetMaxProtocolVersions(rtc::SSL_PROTOCOL_DTLS_12, rtc::SSL_PROTOCOL_DTLS_12); | 656 SetMaxProtocolVersions(rtc::SSL_PROTOCOL_DTLS_12, rtc::SSL_PROTOCOL_DTLS_12); |
650 ASSERT_TRUE(Connect()); | 657 ASSERT_TRUE(Connect()); |
651 } | 658 } |
652 | 659 |
653 // Create two channels with DTLS 1.0 / DTLS 1.2 and check ciphers. | 660 // Create two channels with DTLS 1.0 / DTLS 1.2 and check ciphers. |
654 TEST_F(DtlsTransportChannelTest, TestDtls12Client1) { | 661 TEST_F(DtlsTransportChannelTest, TestDtls12Client1) { |
655 MAYBE_SKIP_TEST(HaveDtls); | 662 MAYBE_SKIP_TEST(HaveDtls); |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 // Each side's remote certificate is the other side's local certificate. | 891 // Each side's remote certificate is the other side's local certificate. |
885 ASSERT_TRUE( | 892 ASSERT_TRUE( |
886 client1_.transport()->GetRemoteSSLCertificate(remote_cert1.accept())); | 893 client1_.transport()->GetRemoteSSLCertificate(remote_cert1.accept())); |
887 ASSERT_EQ(remote_cert1->ToPEMString(), | 894 ASSERT_EQ(remote_cert1->ToPEMString(), |
888 certificate2->ssl_certificate().ToPEMString()); | 895 certificate2->ssl_certificate().ToPEMString()); |
889 ASSERT_TRUE( | 896 ASSERT_TRUE( |
890 client2_.transport()->GetRemoteSSLCertificate(remote_cert2.accept())); | 897 client2_.transport()->GetRemoteSSLCertificate(remote_cert2.accept())); |
891 ASSERT_EQ(remote_cert2->ToPEMString(), | 898 ASSERT_EQ(remote_cert2->ToPEMString(), |
892 certificate1->ssl_certificate().ToPEMString()); | 899 certificate1->ssl_certificate().ToPEMString()); |
893 } | 900 } |
OLD | NEW |