Revert of Removing #defines previously used for building without BoringSSL/OpenSSL. (patchset #2 id:20001 of https://codereview.webrtc.org/2640513002/ )
Reason for revert:
Broke chromium build, due to a config being removed. Will add it back and remove the dependency in a chromium CL.
Original issue's description:
> Removing #defines previously used for building without BoringSSL/OpenSSL.
>
> These defines don't work any more, so they only cause confusion:
>
> FEATURE_ENABLE_SSL
> HAVE_OPENSSL_SSL_H
> SSL_USE_OPENSSL
>
> BUG=webrtc:7025
>
> Review-Url: https://codereview.webrtc.org/2640513002
> Cr-Commit-Position: refs/heads/master@{#16196}
> Committed: eaa826c2ee
TBR=kjellander@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:7025
Review-Url: https://codereview.webrtc.org/2648003003
Cr-Commit-Position: refs/heads/master@{#16197}
This commit is contained in:
@ -25,6 +25,12 @@
|
||||
#include "webrtc/p2p/base/faketransportcontroller.h"
|
||||
#include "webrtc/pc/channel.h"
|
||||
|
||||
#define MAYBE_SKIP_TEST(feature) \
|
||||
if (!(rtc::SSLStreamAdapter::feature())) { \
|
||||
LOG(LS_INFO) << "Feature disabled... skipping"; \
|
||||
return; \
|
||||
}
|
||||
|
||||
using cricket::CA_OFFER;
|
||||
using cricket::CA_PRANSWER;
|
||||
using cricket::CA_ANSWER;
|
||||
@ -2237,26 +2243,32 @@ TEST_F(VoiceChannelSingleThreadTest, SendSrtcpMux) {
|
||||
}
|
||||
|
||||
TEST_F(VoiceChannelSingleThreadTest, SendDtlsSrtpToSrtp) {
|
||||
MAYBE_SKIP_TEST(HaveDtlsSrtp);
|
||||
Base::SendSrtpToSrtp(DTLS, 0);
|
||||
}
|
||||
|
||||
TEST_F(VoiceChannelSingleThreadTest, SendDtlsSrtpToDtlsSrtp) {
|
||||
MAYBE_SKIP_TEST(HaveDtlsSrtp);
|
||||
Base::SendSrtpToSrtp(DTLS, DTLS);
|
||||
}
|
||||
|
||||
TEST_F(VoiceChannelSingleThreadTest, SendDtlsSrtpToDtlsSrtpGcmBoth) {
|
||||
MAYBE_SKIP_TEST(HaveDtlsSrtp);
|
||||
Base::SendSrtpToSrtp(DTLS | GCM_CIPHER, DTLS | GCM_CIPHER);
|
||||
}
|
||||
|
||||
TEST_F(VoiceChannelSingleThreadTest, SendDtlsSrtpToDtlsSrtpGcmOne) {
|
||||
MAYBE_SKIP_TEST(HaveDtlsSrtp);
|
||||
Base::SendSrtpToSrtp(DTLS | GCM_CIPHER, DTLS);
|
||||
}
|
||||
|
||||
TEST_F(VoiceChannelSingleThreadTest, SendDtlsSrtpToDtlsSrtpGcmTwo) {
|
||||
MAYBE_SKIP_TEST(HaveDtlsSrtp);
|
||||
Base::SendSrtpToSrtp(DTLS, DTLS | GCM_CIPHER);
|
||||
}
|
||||
|
||||
TEST_F(VoiceChannelSingleThreadTest, SendDtlsSrtpToDtlsSrtpRtcpMux) {
|
||||
MAYBE_SKIP_TEST(HaveDtlsSrtp);
|
||||
Base::SendSrtpToSrtp(DTLS | RTCP_MUX, DTLS | RTCP_MUX);
|
||||
}
|
||||
|
||||
@ -2564,26 +2576,32 @@ TEST_F(VoiceChannelDoubleThreadTest, SendSrtcpMux) {
|
||||
}
|
||||
|
||||
TEST_F(VoiceChannelDoubleThreadTest, SendDtlsSrtpToSrtp) {
|
||||
MAYBE_SKIP_TEST(HaveDtlsSrtp);
|
||||
Base::SendSrtpToSrtp(DTLS, 0);
|
||||
}
|
||||
|
||||
TEST_F(VoiceChannelDoubleThreadTest, SendDtlsSrtpToDtlsSrtp) {
|
||||
MAYBE_SKIP_TEST(HaveDtlsSrtp);
|
||||
Base::SendSrtpToSrtp(DTLS, DTLS);
|
||||
}
|
||||
|
||||
TEST_F(VoiceChannelDoubleThreadTest, SendDtlsSrtpToDtlsSrtpGcmBoth) {
|
||||
MAYBE_SKIP_TEST(HaveDtlsSrtp);
|
||||
Base::SendSrtpToSrtp(DTLS | GCM_CIPHER, DTLS | GCM_CIPHER);
|
||||
}
|
||||
|
||||
TEST_F(VoiceChannelDoubleThreadTest, SendDtlsSrtpToDtlsSrtpGcmOne) {
|
||||
MAYBE_SKIP_TEST(HaveDtlsSrtp);
|
||||
Base::SendSrtpToSrtp(DTLS | GCM_CIPHER, DTLS);
|
||||
}
|
||||
|
||||
TEST_F(VoiceChannelDoubleThreadTest, SendDtlsSrtpToDtlsSrtpGcmTwo) {
|
||||
MAYBE_SKIP_TEST(HaveDtlsSrtp);
|
||||
Base::SendSrtpToSrtp(DTLS, DTLS | GCM_CIPHER);
|
||||
}
|
||||
|
||||
TEST_F(VoiceChannelDoubleThreadTest, SendDtlsSrtpToDtlsSrtpRtcpMux) {
|
||||
MAYBE_SKIP_TEST(HaveDtlsSrtp);
|
||||
Base::SendSrtpToSrtp(DTLS | RTCP_MUX, DTLS | RTCP_MUX);
|
||||
}
|
||||
|
||||
@ -2883,14 +2901,17 @@ TEST_F(VideoChannelSingleThreadTest, SendSrtpToRtp) {
|
||||
}
|
||||
|
||||
TEST_F(VideoChannelSingleThreadTest, SendDtlsSrtpToSrtp) {
|
||||
MAYBE_SKIP_TEST(HaveDtlsSrtp);
|
||||
Base::SendSrtpToSrtp(DTLS, 0);
|
||||
}
|
||||
|
||||
TEST_F(VideoChannelSingleThreadTest, SendDtlsSrtpToDtlsSrtp) {
|
||||
MAYBE_SKIP_TEST(HaveDtlsSrtp);
|
||||
Base::SendSrtpToSrtp(DTLS, DTLS);
|
||||
}
|
||||
|
||||
TEST_F(VideoChannelSingleThreadTest, SendDtlsSrtpToDtlsSrtpRtcpMux) {
|
||||
MAYBE_SKIP_TEST(HaveDtlsSrtp);
|
||||
Base::SendSrtpToSrtp(DTLS | RTCP_MUX, DTLS | RTCP_MUX);
|
||||
}
|
||||
|
||||
@ -3112,14 +3133,17 @@ TEST_F(VideoChannelDoubleThreadTest, SendSrtpToRtp) {
|
||||
}
|
||||
|
||||
TEST_F(VideoChannelDoubleThreadTest, SendDtlsSrtpToSrtp) {
|
||||
MAYBE_SKIP_TEST(HaveDtlsSrtp);
|
||||
Base::SendSrtpToSrtp(DTLS, 0);
|
||||
}
|
||||
|
||||
TEST_F(VideoChannelDoubleThreadTest, SendDtlsSrtpToDtlsSrtp) {
|
||||
MAYBE_SKIP_TEST(HaveDtlsSrtp);
|
||||
Base::SendSrtpToSrtp(DTLS, DTLS);
|
||||
}
|
||||
|
||||
TEST_F(VideoChannelDoubleThreadTest, SendDtlsSrtpToDtlsSrtpRtcpMux) {
|
||||
MAYBE_SKIP_TEST(HaveDtlsSrtp);
|
||||
Base::SendSrtpToSrtp(DTLS | RTCP_MUX, DTLS | RTCP_MUX);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user