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

Unified Diff: net/spdy/spdy_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_stream_unittest.cc
diff --git a/net/spdy/spdy_stream_unittest.cc b/net/spdy/spdy_stream_unittest.cc
index eea33523734aeb8cc9f56768b975645ecb966474..05498d2254d2c50b0a18b914119001d601920fc6 100644
--- a/net/spdy/spdy_stream_unittest.cc
+++ b/net/spdy/spdy_stream_unittest.cc
@@ -71,12 +71,14 @@ class SpdyStreamTest : public ::testing::Test,
session_deps_(GetProtocol()),
session_(SpdySessionDependencies::SpdyCreateSession(&session_deps_)),
offset_(0) {
- SpdySession::SetPriorityDependencyDefaultForTesting(
- GetDependenciesFromPriority());
+ old_dependency_default_ =
+ Http2PriorityDependencies::SetEnabledDefaultForTesting(
+ GetDependenciesFromPriority());
}
~SpdyStreamTest() {
- SpdySession::SetPriorityDependencyDefaultForTesting(false);
+ Http2PriorityDependencies::SetEnabledDefaultForTesting(
+ old_dependency_default_);
}
base::WeakPtr<SpdySession> CreateDefaultSpdySession() {
@@ -145,6 +147,7 @@ class SpdyStreamTest : public ::testing::Test,
std::vector<MockWrite> writes_;
std::vector<MockRead> reads_;
int offset_;
+ bool old_dependency_default_;
};
INSTANTIATE_TEST_CASE_P(ProtoPlusDepend,

Powered by Google App Engine
This is Rietveld 408576698