Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: webrtc/p2p/base/dtlstransportchannel_unittest.cc

Issue 2770903003: Accept remote offers with current DTLS role, rather than "actpass". (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/p2p/base/jseptransport.h » ('j') | webrtc/p2p/base/jseptransport.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/dtlstransportchannel_unittest.cc
diff --git a/webrtc/p2p/base/dtlstransportchannel_unittest.cc b/webrtc/p2p/base/dtlstransportchannel_unittest.cc
index 696135c5b0ce495991e87a4450664d3573441d2b..17e7a0bcadfc3ce9b0f0a98c9aa5c5ac5a15a6e4 100644
--- a/webrtc/p2p/base/dtlstransportchannel_unittest.cc
+++ b/webrtc/p2p/base/dtlstransportchannel_unittest.cc
@@ -818,12 +818,8 @@ TEST_F(DtlsTransportChannelTest, TestTransferDtlsAnswererIsPassive) {
TEST_F(DtlsTransportChannelTest, TestDtlsSetupWithLegacyAsAnswerer) {
PrepareDtls(true, true, rtc::KT_DEFAULT);
NegotiateWithLegacy();
- rtc::SSLRole channel1_role;
- rtc::SSLRole channel2_role;
- client1_.transport()->GetSslRole(&channel1_role);
- client2_.transport()->GetSslRole(&channel2_role);
- EXPECT_EQ(rtc::SSL_SERVER, channel1_role);
- EXPECT_EQ(rtc::SSL_CLIENT, channel2_role);
+ EXPECT_EQ(rtc::SSL_SERVER, *client1_.transport()->GetSslRole());
+ EXPECT_EQ(rtc::SSL_CLIENT, *client2_.transport()->GetSslRole());
}
// Testing re offer/answer after the session is estbalished. Roles will be
« no previous file with comments | « no previous file | webrtc/p2p/base/jseptransport.h » ('j') | webrtc/p2p/base/jseptransport.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698