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

Unified Diff: content/browser/loader/resource_scheduler_unittest.cc

Issue 2441633002: [ResourceScheduler] Make throttling H2+QUIC default disabled (Closed)
Patch Set: fieldtrial_testing_config.json Created 4 years, 2 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 | « content/browser/loader/resource_scheduler.cc ('k') | testing/variations/fieldtrial_testing_config.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_scheduler_unittest.cc
diff --git a/content/browser/loader/resource_scheduler_unittest.cc b/content/browser/loader/resource_scheduler_unittest.cc
index 90d6d47c921b9650906a55d4756ba8a1915ca35d..66aa0d419b31901b8dcd1487d203d0baa4fea99f 100644
--- a/content/browser/loader/resource_scheduler_unittest.cc
+++ b/content/browser/loader/resource_scheduler_unittest.cc
@@ -344,6 +344,11 @@ TEST_F(ResourceSchedulerTest, OneLowLoadsUntilBodyInsertedExceptSpdy) {
TEST_F(ResourceSchedulerTest,
OneLowLoadsUntilBodyInsertedEvenSpdyWhenDelayable) {
+ base::test::ScopedFeatureList scoped_feature_list;
+ scoped_feature_list.InitFromCommandLine(kPrioritySupportedRequestsDelayable,
+ "");
+
+ InitializeScheduler();
http_server_properties_.SetSupportsSpdy(
url::SchemeHostPort("https", "spdyhost", 443), true);
std::unique_ptr<TestRequest> high(
@@ -684,6 +689,11 @@ TEST_F(ResourceSchedulerTest, SpdyProxySchedulesImmediately) {
}
TEST_F(ResourceSchedulerTest, SpdyProxyDelayable) {
+ base::test::ScopedFeatureList scoped_feature_list;
+ scoped_feature_list.InitFromCommandLine(kPrioritySupportedRequestsDelayable,
+ "");
+ InitializeScheduler();
+
std::unique_ptr<TestRequest> high(
NewRequest("http://host/high", net::HIGHEST));
std::unique_ptr<TestRequest> low(NewRequest("http://host/low", net::LOWEST));
@@ -741,6 +751,11 @@ TEST_F(ResourceSchedulerTest, NewSpdyHostInDelayableRequests) {
}
TEST_F(ResourceSchedulerTest, NewDelayableSpdyHostInDelayableRequests) {
+ base::test::ScopedFeatureList scoped_feature_list;
+ scoped_feature_list.InitFromCommandLine(kPrioritySupportedRequestsDelayable,
+ "");
+ InitializeScheduler();
+
scheduler()->OnWillInsertBody(kChildId, kRouteId);
const int kMaxNumDelayableRequestsPerClient = 10; // Should match the .cc.
« no previous file with comments | « content/browser/loader/resource_scheduler.cc ('k') | testing/variations/fieldtrial_testing_config.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698