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

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: Make bi-directional stream unittests enable priority->dependency setting. 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
« no previous file with comments | « net/spdy/spdy_http_stream_unittest.cc ('k') | net/spdy/spdy_proxy_client_socket_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 88b34eba87c0ef797f82108f86ecd7cca1ef2402..cecfe7c2d823ab15bc2531f403980d778e84fd6d 100644
--- a/net/spdy/spdy_network_transaction_unittest.cc
+++ b/net/spdy/spdy_network_transaction_unittest.cc
@@ -114,6 +114,8 @@ void UpdateSpdySessionDependencies(SpdyNetworkTransactionTestParams test_params,
"www.example.org", 443),
expiration);
}
+ session_deps->enable_priority_dependencies =
+ test_params.priority_to_dependency;
}
scoped_ptr<SpdySessionDependencies> CreateSpdySessionDependencies(
@@ -140,8 +142,6 @@ class SpdyNetworkTransactionTest
protected:
SpdyNetworkTransactionTest()
: spdy_util_(GetParam().protocol, GetParam().priority_to_dependency) {
- SpdySession::SetPriorityDependencyDefaultForTesting(
- GetParam().priority_to_dependency);
spdy_util_.set_default_url(GURL(GetDefaultUrl()));
}
@@ -150,7 +150,6 @@ class SpdyNetworkTransactionTest
// destruction.
upload_data_stream_.reset();
base::RunLoop().RunUntilIdle();
- SpdySession::SetPriorityDependencyDefaultForTesting(false);
}
void SetUp() override {
« no previous file with comments | « net/spdy/spdy_http_stream_unittest.cc ('k') | net/spdy/spdy_proxy_client_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698