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

Unified Diff: net/http/http_proxy_client_socket_pool_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/http/http_proxy_client_socket_pool_unittest.cc
diff --git a/net/http/http_proxy_client_socket_pool_unittest.cc b/net/http/http_proxy_client_socket_pool_unittest.cc
index 29c10d0679e3d81f5faa3206b66ae750bc959043..d084262581e849eb38b15944183b26754b7054bb 100644
--- a/net/http/http_proxy_client_socket_pool_unittest.cc
+++ b/net/http/http_proxy_client_socket_pool_unittest.cc
@@ -93,12 +93,14 @@ class HttpProxyClientSocketPoolTest
&transport_socket_pool_,
&ssl_socket_pool_,
NULL) {
- SpdySession::SetPriorityDependencyDefaultForTesting(
- GetParam().priority_to_dependency);
+ old_dependency_default_ =
+ Http2PriorityDependencies::SetEnabledDefaultForTesting(
+ GetParam().priority_to_dependency);
}
virtual ~HttpProxyClientSocketPoolTest() {
- SpdySession::SetPriorityDependencyDefaultForTesting(false);
+ Http2PriorityDependencies::SetEnabledDefaultForTesting(
+ old_dependency_default_);
}
void AddAuthToCache() {
@@ -221,6 +223,8 @@ class HttpProxyClientSocketPoolTest
const scoped_ptr<HttpNetworkSession> session_;
+ bool old_dependency_default_;
+
protected:
SpdyTestUtil spdy_util_;
scoped_ptr<SSLSocketDataProvider> ssl_data_;

Powered by Google App Engine
This is Rietveld 408576698