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

Unified Diff: net/spdy/spdy_session_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: Incorporate Bence's detailed comments. 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_session_pool_unittest.cc
diff --git a/net/spdy/spdy_session_pool_unittest.cc b/net/spdy/spdy_session_pool_unittest.cc
index 86a887a27a06398ae9211dde130adb88f6962137..16c52d881cd86a3e1937ba2a24055193cf4e3c9a 100644
--- a/net/spdy/spdy_session_pool_unittest.cc
+++ b/net/spdy/spdy_session_pool_unittest.cc
@@ -514,14 +514,14 @@ TEST_P(SpdySessionPoolTest, IPPoolingCloseIdleSessions) {
// for crbug.com/379469.
TEST_P(SpdySessionPoolTest, IPAddressChanged) {
MockConnect connect_data(SYNCHRONOUS, OK);
- session_deps_.host_resolver->set_synchronous_mode(true);
// This isn't testing anything having to do with SPDY frames; we
// can ignore issues of how dependencies are set. We default to
// setting them (when doing the appropriate protocol) since that's
// where we're eventually headed for all HTTP/2 connections.
+ session_deps_.host_resolver->set_synchronous_mode(true);
Bence 2016/03/17 01:48:59 Why did you move the synchronous line below the co
Randy Smith (Not in Mondays) 2016/03/17 20:27:42 Whoops, sorry, I think I misread it and thought it
+ session_deps_.enable_priority_dependencies = true;
Bence 2016/03/17 01:48:59 Optional: const bool enable_priority_dependencies
Bence 2016/03/17 12:25:59 I guess I mean const bool enable_priority_depende
Randy Smith (Not in Mondays) 2016/03/17 20:27:42 I took the comment option.
SpdyTestUtil spdy_util(GetParam(), true);
- SpdySession::SetPriorityDependencyDefaultForTesting(true);
MockRead reads[] = {
MockRead(SYNCHRONOUS, ERR_IO_PENDING) // Stall forever.
@@ -630,7 +630,6 @@ TEST_P(SpdySessionPoolTest, IPAddressChanged) {
EXPECT_TRUE(delegateB.StreamIsClosed());
EXPECT_EQ(ERR_NETWORK_CHANGED, delegateB.WaitForClose());
#endif // defined(OS_ANDROID) || defined(OS_WIN) || defined(OS_IOS)
- SpdySession::SetPriorityDependencyDefaultForTesting(false);
}
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698