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

Unified Diff: net/spdy/spdy_http_stream_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_http_stream_unittest.cc
diff --git a/net/spdy/spdy_http_stream_unittest.cc b/net/spdy/spdy_http_stream_unittest.cc
index 69ef3707249b010c83f3c1821ccb53014835177d..77c261803aec87df5913d09bc8587053cf5360ca 100644
--- a/net/spdy/spdy_http_stream_unittest.cc
+++ b/net/spdy/spdy_http_stream_unittest.cc
@@ -82,13 +82,15 @@ class SpdyHttpStreamTest : public testing::Test,
SpdyHttpStreamTest()
: spdy_util_(GetProtocol(), GetDependenciesFromPriority()),
session_deps_(GetProtocol()) {
- SpdySession::SetPriorityDependencyDefaultForTesting(
- GetDependenciesFromPriority());
+ old_dependency_default_ =
+ Http2PriorityDependencies::SetEnabledDefaultForTesting(
+ GetDependenciesFromPriority());
session_deps_.net_log = &net_log_;
}
~SpdyHttpStreamTest() {
- SpdySession::SetPriorityDependencyDefaultForTesting(false);
+ Http2PriorityDependencies::SetEnabledDefaultForTesting(
+ old_dependency_default_);
}
protected:
@@ -135,6 +137,7 @@ class SpdyHttpStreamTest : public testing::Test,
private:
MockECSignatureCreatorFactory ec_signature_creator_factory_;
+ bool old_dependency_default_;
};
INSTANTIATE_TEST_CASE_P(ProtoPlusDepend,

Powered by Google App Engine
This is Rietveld 408576698