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

Unified Diff: net/log/bounded_file_net_log_observer_unittest.cc

Issue 2327923002: Revert of Remove obsolete QUIC disabling code. (Closed)
Patch Set: Created 4 years, 3 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/http/http_stream_factory_impl_unittest.cc ('k') | net/quic/chromium/quic_chromium_client_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/log/bounded_file_net_log_observer_unittest.cc
diff --git a/net/log/bounded_file_net_log_observer_unittest.cc b/net/log/bounded_file_net_log_observer_unittest.cc
index 6998995f74141d5102437f8099ab58a1574b35bc..fe20aae08d1424f2d0e5d39bc9c1f41cd1bf1ccb 100644
--- a/net/log/bounded_file_net_log_observer_unittest.cc
+++ b/net/log/bounded_file_net_log_observer_unittest.cc
@@ -772,6 +772,7 @@
const int kDummyParam = 75;
std::unique_ptr<HttpNetworkSession::Params> params(
new HttpNetworkSession::Params);
+ params->quic_max_number_of_lossy_connections = kDummyParam;
params->quic_idle_connection_timeout_seconds = kDummyParam;
context.set_http_network_session_params(std::move(params));
context.Init();
@@ -801,11 +802,15 @@
ASSERT_TRUE(dict->GetDictionary("tabInfo", &tab_info));
ASSERT_TRUE(tab_info->GetDictionary("quicInfo", &quic_info));
base::Value* timeout_value = nullptr;
- int timeout;
+ base::Value* lossy_value = nullptr;
+ int timeout, lossy;
ASSERT_TRUE(
quic_info->Get("idle_connection_timeout_seconds", &timeout_value));
ASSERT_TRUE(timeout_value->GetAsInteger(&timeout));
ASSERT_EQ(timeout, kDummyParam);
+ ASSERT_TRUE(quic_info->Get("max_number_of_lossy_connections", &lossy_value));
+ ASSERT_TRUE(lossy_value->GetAsInteger(&lossy));
+ ASSERT_EQ(lossy, kDummyParam);
}
TEST_F(BoundedFileNetLogObserverTest,
« no previous file with comments | « net/http/http_stream_factory_impl_unittest.cc ('k') | net/quic/chromium/quic_chromium_client_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698