Disable OpenSSL tests needing a fake clock when boringssl is not used
since OpenSSL lacks that feature so broke as a result of https://chromiumdash.appspot.com/commit/130bdcea7e69368cae66e10a99c5e86dc4e5770a BUG=webrtc:375552698 Change-Id: I55da67a7dcf5815f7190bd43847a9ad6f7c1b93d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/374600 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Philipp Hancke <phancke@meta.com> Reviewed-by: Jeremy Leconte <jleconte@webrtc.org> Cr-Commit-Position: refs/heads/main@{#43767}
This commit is contained in:
parent
e6890adc3a
commit
9165a9b436
@ -1196,16 +1196,32 @@ class SSLStreamAdapterTestDTLS : public SSLStreamAdapterTestDTLSBase {
|
||||
std::make_pair(rtc::DIGEST_SHA_256, SHA256_DIGEST_LENGTH)) {}
|
||||
};
|
||||
|
||||
#ifdef OPENSSL_IS_BORINGSSL
|
||||
#define MAYBE_TestDTLSConnectWithLostFirstPacketNoDelay \
|
||||
TestDTLSConnectWithLostFirstPacketNoDelay
|
||||
#else
|
||||
#define MAYBE_TestDTLSConnectWithLostFirstPacketNoDelay \
|
||||
DISABLED_TestDTLSConnectWithLostFirstPacketNoDelay
|
||||
#endif
|
||||
// Test that we can make a handshake work if the first packet in
|
||||
// each direction is lost. This gives us predictable loss
|
||||
// rather than having to tune random
|
||||
TEST_F(SSLStreamAdapterTestDTLS, TestDTLSConnectWithLostFirstPacket) {
|
||||
TEST_F(SSLStreamAdapterTestDTLS,
|
||||
MAYBE_TestDTLSConnectWithLostFirstPacketNoDelay) {
|
||||
SetLoseFirstPacket(true);
|
||||
TestHandshake();
|
||||
}
|
||||
|
||||
#ifdef OPENSSL_IS_BORINGSSL
|
||||
#define MAYBE_TestDTLSConnectWithLostFirstPacketDelay2s \
|
||||
TestDTLSConnectWithLostFirstPacketDelay2s
|
||||
#else
|
||||
#define MAYBE_TestDTLSConnectWithLostFirstPacketDelay2s \
|
||||
DISABLED_TestDTLSConnectWithLostFirstPacketDelay2s
|
||||
#endif
|
||||
// Test a handshake with loss and delay
|
||||
TEST_F(SSLStreamAdapterTestDTLS, TestDTLSConnectWithLostFirstPacketDelay2s) {
|
||||
TEST_F(SSLStreamAdapterTestDTLS,
|
||||
MAYBE_TestDTLSConnectWithLostFirstPacketDelay2s) {
|
||||
SetLoseFirstPacket(true);
|
||||
SetDelay(2000);
|
||||
SetHandshakeWait(20000);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user