Index: talk/app/webrtc/webrtcsession_unittest.cc |
diff --git a/talk/app/webrtc/webrtcsession_unittest.cc b/talk/app/webrtc/webrtcsession_unittest.cc |
index 3a09edab911fc62149a133a24e217f69bfc54047..c98c2c288e373fcf84c8c7edbde369869bbe5715 100644 |
--- a/talk/app/webrtc/webrtcsession_unittest.cc |
+++ b/talk/app/webrtc/webrtcsession_unittest.cc |
@@ -545,9 +545,9 @@ class WebRtcSessionTest : public testing::Test { |
ASSERT_EQ(0U, video_content->cryptos().size()); |
if (dtls) { |
- EXPECT_EQ(std::string(cricket::kMediaProtocolSavpf), |
+ EXPECT_EQ(std::string(cricket::kMediaProtocolDtlsSavpf), |
audio_content->protocol()); |
- EXPECT_EQ(std::string(cricket::kMediaProtocolSavpf), |
+ EXPECT_EQ(std::string(cricket::kMediaProtocolDtlsSavpf), |
video_content->protocol()); |
} else { |
EXPECT_EQ(std::string(cricket::kMediaProtocolAvpf), |
@@ -1692,7 +1692,10 @@ TEST_F(WebRtcSessionTest, TestSetLocalNonDtlsAnswerWhenDtlsOn) { |
// a DTLS fingerprint when DTLS is required. |
TEST_F(WebRtcSessionTest, TestSetRemoteNonDtlsAnswerWhenDtlsOn) { |
MAYBE_SKIP_TEST(rtc::SSLStreamAdapter::HaveDtlsSrtp); |
+ // Enable both SDES and DTLS, so that offer won't be outright rejected as a |
+ // result of using the "UDP/TLS/RTP/SAVPF" profile. |
InitWithDtls(); |
+ session_->SetSdesPolicy(cricket::SEC_ENABLED); |
SessionDescriptionInterface* offer = CreateOffer(); |
cricket::MediaSessionOptions options; |
options.recv_video = true; |