Index: webrtc/p2p/base/dtlstransportchannel_unittest.cc |
diff --git a/webrtc/p2p/base/dtlstransportchannel_unittest.cc b/webrtc/p2p/base/dtlstransportchannel_unittest.cc |
index bff2e7da5d27ff18285a402d1f65c78a0a54ea0a..1808200a858eb4da63a56043256aad09c86c5330 100644 |
--- a/webrtc/p2p/base/dtlstransportchannel_unittest.cc |
+++ b/webrtc/p2p/base/dtlstransportchannel_unittest.cc |
@@ -690,7 +690,6 @@ TEST_F(DtlsTransportChannelTest, TestTransferSrtpTwoChannels) { |
// Connect with DTLS, and transfer some data. |
TEST_F(DtlsTransportChannelTest, TestTransferDtls) { |
- MAYBE_SKIP_TEST(HaveDtls); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
ASSERT_TRUE(Connect()); |
TestTransfer(0, 1000, 100, false); |
@@ -698,7 +697,6 @@ TEST_F(DtlsTransportChannelTest, TestTransferDtls) { |
// Create two channels with DTLS, and transfer some data. |
TEST_F(DtlsTransportChannelTest, TestTransferDtlsTwoChannels) { |
- MAYBE_SKIP_TEST(HaveDtls); |
SetChannelCount(2); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
ASSERT_TRUE(Connect()); |
@@ -722,7 +720,6 @@ TEST_F(DtlsTransportChannelTest, TestTransferDtlsNotOffered) { |
// Create two channels with DTLS 1.0 and check ciphers. |
TEST_F(DtlsTransportChannelTest, TestDtls12None) { |
- MAYBE_SKIP_TEST(HaveDtls); |
SetChannelCount(2); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
SetMaxProtocolVersions(rtc::SSL_PROTOCOL_DTLS_10, rtc::SSL_PROTOCOL_DTLS_10); |
@@ -731,7 +728,6 @@ TEST_F(DtlsTransportChannelTest, TestDtls12None) { |
// Create two channels with DTLS 1.2 and check ciphers. |
TEST_F(DtlsTransportChannelTest, TestDtls12Both) { |
- MAYBE_SKIP_TEST(HaveDtls); |
SetChannelCount(2); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
SetMaxProtocolVersions(rtc::SSL_PROTOCOL_DTLS_12, rtc::SSL_PROTOCOL_DTLS_12); |
@@ -740,7 +736,6 @@ TEST_F(DtlsTransportChannelTest, TestDtls12Both) { |
// Create two channels with DTLS 1.0 / DTLS 1.2 and check ciphers. |
TEST_F(DtlsTransportChannelTest, TestDtls12Client1) { |
- MAYBE_SKIP_TEST(HaveDtls); |
SetChannelCount(2); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
SetMaxProtocolVersions(rtc::SSL_PROTOCOL_DTLS_12, rtc::SSL_PROTOCOL_DTLS_10); |
@@ -749,7 +744,6 @@ TEST_F(DtlsTransportChannelTest, TestDtls12Client1) { |
// Create two channels with DTLS 1.2 / DTLS 1.0 and check ciphers. |
TEST_F(DtlsTransportChannelTest, TestDtls12Client2) { |
- MAYBE_SKIP_TEST(HaveDtls); |
SetChannelCount(2); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
SetMaxProtocolVersions(rtc::SSL_PROTOCOL_DTLS_10, rtc::SSL_PROTOCOL_DTLS_12); |
@@ -758,7 +752,6 @@ TEST_F(DtlsTransportChannelTest, TestDtls12Client2) { |
// Connect with DTLS, negotiate DTLS-SRTP, and transfer SRTP using bypass. |
TEST_F(DtlsTransportChannelTest, TestTransferDtlsSrtp) { |
- MAYBE_SKIP_TEST(HaveDtlsSrtp); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
PrepareDtlsSrtp(true, true); |
ASSERT_TRUE(Connect()); |
@@ -768,7 +761,6 @@ TEST_F(DtlsTransportChannelTest, TestTransferDtlsSrtp) { |
// Connect with DTLS-SRTP, transfer an invalid SRTP packet, and expects -1 |
// returned. |
TEST_F(DtlsTransportChannelTest, TestTransferDtlsInvalidSrtpPacket) { |
- MAYBE_SKIP_TEST(HaveDtls); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
PrepareDtlsSrtp(true, true); |
ASSERT_TRUE(Connect()); |
@@ -778,7 +770,6 @@ TEST_F(DtlsTransportChannelTest, TestTransferDtlsInvalidSrtpPacket) { |
// Connect with DTLS. A does DTLS-SRTP but B does not. |
TEST_F(DtlsTransportChannelTest, TestTransferDtlsSrtpRejected) { |
- MAYBE_SKIP_TEST(HaveDtlsSrtp); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
PrepareDtlsSrtp(true, false); |
ASSERT_TRUE(Connect()); |
@@ -786,7 +777,6 @@ TEST_F(DtlsTransportChannelTest, TestTransferDtlsSrtpRejected) { |
// Connect with DTLS. B does DTLS-SRTP but A does not. |
TEST_F(DtlsTransportChannelTest, TestTransferDtlsSrtpNotOffered) { |
- MAYBE_SKIP_TEST(HaveDtlsSrtp); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
PrepareDtlsSrtp(false, true); |
ASSERT_TRUE(Connect()); |
@@ -794,7 +784,6 @@ TEST_F(DtlsTransportChannelTest, TestTransferDtlsSrtpNotOffered) { |
// Create two channels with DTLS, negotiate DTLS-SRTP, and transfer bypass SRTP. |
TEST_F(DtlsTransportChannelTest, TestTransferDtlsSrtpTwoChannels) { |
- MAYBE_SKIP_TEST(HaveDtlsSrtp); |
SetChannelCount(2); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
PrepareDtlsSrtp(true, true); |
@@ -805,7 +794,6 @@ TEST_F(DtlsTransportChannelTest, TestTransferDtlsSrtpTwoChannels) { |
// Create a single channel with DTLS, and send normal data and SRTP data on it. |
TEST_F(DtlsTransportChannelTest, TestTransferDtlsSrtpDemux) { |
- MAYBE_SKIP_TEST(HaveDtlsSrtp); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
PrepareDtlsSrtp(true, true); |
ASSERT_TRUE(Connect()); |
@@ -815,7 +803,6 @@ TEST_F(DtlsTransportChannelTest, TestTransferDtlsSrtpDemux) { |
// Testing when the remote is passive. |
TEST_F(DtlsTransportChannelTest, TestTransferDtlsAnswererIsPassive) { |
- MAYBE_SKIP_TEST(HaveDtlsSrtp); |
SetChannelCount(2); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
PrepareDtlsSrtp(true, true); |
@@ -828,7 +815,6 @@ TEST_F(DtlsTransportChannelTest, TestTransferDtlsAnswererIsPassive) { |
// Testing with the legacy DTLS client which doesn't use setup attribute. |
// In this case legacy is the answerer. |
TEST_F(DtlsTransportChannelTest, TestDtlsSetupWithLegacyAsAnswerer) { |
- MAYBE_SKIP_TEST(HaveDtlsSrtp); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
NegotiateWithLegacy(); |
rtc::SSLRole channel1_role; |
@@ -842,7 +828,6 @@ TEST_F(DtlsTransportChannelTest, TestDtlsSetupWithLegacyAsAnswerer) { |
// Testing re offer/answer after the session is estbalished. Roles will be |
// kept same as of the previous negotiation. |
TEST_F(DtlsTransportChannelTest, TestDtlsReOfferFromOfferer) { |
- MAYBE_SKIP_TEST(HaveDtlsSrtp); |
SetChannelCount(2); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
PrepareDtlsSrtp(true, true); |
@@ -859,7 +844,6 @@ TEST_F(DtlsTransportChannelTest, TestDtlsReOfferFromOfferer) { |
} |
TEST_F(DtlsTransportChannelTest, TestDtlsReOfferFromAnswerer) { |
- MAYBE_SKIP_TEST(HaveDtlsSrtp); |
SetChannelCount(2); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
PrepareDtlsSrtp(true, true); |
@@ -877,7 +861,6 @@ TEST_F(DtlsTransportChannelTest, TestDtlsReOfferFromAnswerer) { |
// Test that any change in role after the intial setup will result in failure. |
TEST_F(DtlsTransportChannelTest, TestDtlsRoleReversal) { |
- MAYBE_SKIP_TEST(HaveDtlsSrtp); |
SetChannelCount(2); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
PrepareDtlsSrtp(true, true); |
@@ -893,7 +876,6 @@ TEST_F(DtlsTransportChannelTest, TestDtlsRoleReversal) { |
// Test that using different setup attributes which results in similar ssl |
// role as the initial negotiation will result in success. |
TEST_F(DtlsTransportChannelTest, TestDtlsReOfferWithDifferentSetupAttr) { |
- MAYBE_SKIP_TEST(HaveDtlsSrtp); |
SetChannelCount(2); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
PrepareDtlsSrtp(true, true); |
@@ -909,7 +891,6 @@ TEST_F(DtlsTransportChannelTest, TestDtlsReOfferWithDifferentSetupAttr) { |
// Test that re-negotiation can be started before the clients become connected |
// in the first negotiation. |
TEST_F(DtlsTransportChannelTest, TestRenegotiateBeforeConnect) { |
- MAYBE_SKIP_TEST(HaveDtlsSrtp); |
SetChannelCount(2); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
PrepareDtlsSrtp(true, true); |
@@ -929,7 +910,6 @@ TEST_F(DtlsTransportChannelTest, TestRenegotiateBeforeConnect) { |
// Test Certificates state after negotiation but before connection. |
TEST_F(DtlsTransportChannelTest, TestCertificatesBeforeConnect) { |
- MAYBE_SKIP_TEST(HaveDtls); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
Negotiate(); |
@@ -950,7 +930,6 @@ TEST_F(DtlsTransportChannelTest, TestCertificatesBeforeConnect) { |
// Test Certificates state after connection. |
TEST_F(DtlsTransportChannelTest, TestCertificatesAfterConnect) { |
- MAYBE_SKIP_TEST(HaveDtls); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
ASSERT_TRUE(Connect()); |
@@ -981,7 +960,6 @@ TEST_F(DtlsTransportChannelTest, TestCertificatesAfterConnect) { |
// 60 seconds. The timer defaults to 1 second, but for WebRTC we should be |
// initializing it to 50ms. |
TEST_F(DtlsTransportChannelTest, TestRetransmissionSchedule) { |
- MAYBE_SKIP_TEST(HaveDtls); |
// We can only change the retransmission schedule with a recently-added |
// BoringSSL API. Skip the test if not built with BoringSSL. |
MAYBE_SKIP_TEST(IsBoringSsl); |
@@ -1022,7 +1000,6 @@ TEST_F(DtlsTransportChannelTest, TestRetransmissionSchedule) { |
// Test that a DTLS connection can be made even if the underlying transport |
// is connected before DTLS fingerprints/roles have been negotiated. |
TEST_F(DtlsTransportChannelTest, TestConnectBeforeNegotiate) { |
- MAYBE_SKIP_TEST(HaveDtls); |
PrepareDtls(true, true, rtc::KT_DEFAULT); |
ASSERT_TRUE(Connect(cricket::CONNECTIONROLE_ACTPASS, |
cricket::CONNECTIONROLE_ACTIVE, |
@@ -1155,7 +1132,6 @@ class DtlsEventOrderingTest |
}; |
TEST_P(DtlsEventOrderingTest, TestEventOrdering) { |
- MAYBE_SKIP_TEST(HaveDtls); |
TestEventOrdering(::testing::get<0>(GetParam()), |
::testing::get<1>(GetParam())); |
} |