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

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

Issue 2970883005: Handle case where UDP packet contains multiple DTLS records. (Closed)
Patch Set: Created 3 years, 5 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
Index: webrtc/p2p/base/dtlstransportchannel_unittest.cc
diff --git a/webrtc/p2p/base/dtlstransportchannel_unittest.cc b/webrtc/p2p/base/dtlstransportchannel_unittest.cc
index 4286d76be33bc37a9b7f694f31b93f79b348e64b..d886e3c488077d69a78893eaa3fd35ccc59f88f2 100644
--- a/webrtc/p2p/base/dtlstransportchannel_unittest.cc
+++ b/webrtc/p2p/base/dtlstransportchannel_unittest.cc
@@ -670,6 +670,15 @@ TEST_F(DtlsTransportChannelTest, TestTransferDtlsTwoChannels) {
TestTransfer(1, 1000, 100, false);
}
+// Connect with DTLS, combine multiple DTLS records into one packet.
Taylor Brandstetter 2017/07/06 22:06:11 May be nice to have some context here; "Our DTLS i
joachim 2017/07/07 16:12:59 Done
+TEST_F(DtlsTransportChannelTest, TestTransferDtlsCombineRecords) {
+ PrepareDtls(true, true, rtc::KT_DEFAULT);
+ ASSERT_TRUE(Connect());
+ cricket::FakeIceTransport* transport = client1_.GetFakeIceTransort(0);
+ transport->set_combine(true);
Taylor Brandstetter 2017/07/06 22:06:11 Would be nice to have a comment saying something l
joachim 2017/07/07 16:12:59 Done.
+ TestTransfer(0, 500, 100, false);
+}
+
// Connect with A doing DTLS and B not, and transfer some data.
TEST_F(DtlsTransportChannelTest, TestTransferDtlsRejected) {
PrepareDtls(true, false, rtc::KT_DEFAULT);

Powered by Google App Engine
This is Rietveld 408576698