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

Unified Diff: net/spdy/spdy_network_transaction_unittest.cc

Issue 1779733003: Fix bug in net::RequestPriority -> HTTP/2 dependency conversion. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: net/spdy/spdy_network_transaction_unittest.cc
diff --git a/net/spdy/spdy_network_transaction_unittest.cc b/net/spdy/spdy_network_transaction_unittest.cc
index c563868072bff28c6050ac9c2fe61a70ffbae5cc..52068ea5dc1dc309a1b21566da35f2ce5825ab29 100644
--- a/net/spdy/spdy_network_transaction_unittest.cc
+++ b/net/spdy/spdy_network_transaction_unittest.cc
@@ -140,8 +140,9 @@ class SpdyNetworkTransactionTest
protected:
SpdyNetworkTransactionTest()
: spdy_util_(GetParam().protocol, GetParam().priority_to_dependency) {
- SpdySession::SetPriorityDependencyDefaultForTesting(
- GetParam().priority_to_dependency);
+ old_dependency_default_ =
+ Http2PriorityDependencies::SetEnabledDefaultForTesting(
+ GetParam().priority_to_dependency);
spdy_util_.set_default_url(GURL(GetDefaultUrl()));
}
@@ -150,7 +151,8 @@ class SpdyNetworkTransactionTest
// destruction.
upload_data_stream_.reset();
base::RunLoop().RunUntilIdle();
- SpdySession::SetPriorityDependencyDefaultForTesting(false);
+ Http2PriorityDependencies::SetEnabledDefaultForTesting(
+ old_dependency_default_);
}
void SetUp() override {
@@ -672,6 +674,7 @@ class SpdyNetworkTransactionTest
HttpRequestInfo chunked_post_request_;
HttpRequestInfo get_push_request_;
base::ScopedTempDir temp_dir_;
+ bool old_dependency_default_;
};
//-----------------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698