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

Unified Diff: net/quic/quic_session_test.cc

Issue 23464033: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix valgrind error Created 7 years, 3 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 | « net/quic/quic_session.cc ('k') | net/quic/test_tools/quic_connection_peer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_session_test.cc
diff --git a/net/quic/quic_session_test.cc b/net/quic/quic_session_test.cc
index ec79f67b0db45f27928f23b112860380100759b5..b7953aee110b997adc09cd2015288e445b66194b 100644
--- a/net/quic/quic_session_test.cc
+++ b/net/quic/quic_session_test.cc
@@ -176,6 +176,15 @@ TEST_F(QuicSessionTest, IsClosedStreamDefault) {
}
}
+TEST_F(QuicSessionTest, ImplicitlyCreatedStreams) {
+ ASSERT_TRUE(session_.GetIncomingReliableStream(7) != NULL);
+ // Both 3 and 5 should be implicitly created.
+ EXPECT_FALSE(session_.IsClosedStream(3));
+ EXPECT_FALSE(session_.IsClosedStream(5));
+ ASSERT_TRUE(session_.GetIncomingReliableStream(5) != NULL);
+ ASSERT_TRUE(session_.GetIncomingReliableStream(3) != NULL);
+}
+
TEST_F(QuicSessionTest, IsClosedStreamLocallyCreated) {
TestStream* stream2 = session_.CreateOutgoingReliableStream();
EXPECT_EQ(2u, stream2->id());
« no previous file with comments | « net/quic/quic_session.cc ('k') | net/quic/test_tools/quic_connection_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698