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

Unified Diff: net/quic/quic_crypto_stream_test.cc

Issue 366863002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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: net/quic/quic_crypto_stream_test.cc
diff --git a/net/quic/quic_crypto_stream_test.cc b/net/quic/quic_crypto_stream_test.cc
index 536b1512222a052e46680430ad7fd487a9a2cfac..b21d5c0108bee11ea41140f99d712cb3fe0657c0 100644
--- a/net/quic/quic_crypto_stream_test.cc
+++ b/net/quic/quic_crypto_stream_test.cc
@@ -13,6 +13,7 @@
#include "net/quic/quic_flags.h"
#include "net/quic/test_tools/crypto_test_utils.h"
#include "net/quic/test_tools/quic_test_utils.h"
+#include "net/quic/test_tools/reliable_quic_stream_peer.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -102,8 +103,16 @@ TEST_F(QuicCryptoStreamTest, ProcessBadData) {
EXPECT_EQ(0u, stream_.ProcessRawData(bad.data(), bad.length()));
}
-TEST_F(QuicCryptoStreamTest, NoFlowControl) {
- EXPECT_FALSE(stream_.flow_controller()->IsEnabled());
+TEST_F(QuicCryptoStreamTest, NoConnectionLevelFlowControl) {
+ ValueRestore<bool> old_flag(&FLAGS_enable_quic_connection_flow_control_2,
+ true);
+ if (connection_->version() <= QUIC_VERSION_20) {
+ EXPECT_FALSE(stream_.flow_controller()->IsEnabled());
+ } else {
+ EXPECT_TRUE(stream_.flow_controller()->IsEnabled());
+ }
+ EXPECT_FALSE(ReliableQuicStreamPeer::StreamContributesToConnectionFlowControl(
+ &stream_));
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698