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

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

Issue 2128783002: Enable NonValidatingReloadOnNormalReload on variations testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: done Created 4 years, 5 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/frame_host/navigator_impl_unittest.cc ('k') | content/public/common/content_features.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/reload_cache_control_browsertest.cc
diff --git a/content/browser/loader/reload_cache_control_browsertest.cc b/content/browser/loader/reload_cache_control_browsertest.cc
index 38586762a6eea3fa9c68ce15ff2ad8a2b795f68e..2ab56cad50f8138c370bdc7866b572086b7a0027 100644
--- a/content/browser/loader/reload_cache_control_browsertest.cc
+++ b/content/browser/loader/reload_cache_control_browsertest.cc
@@ -43,6 +43,18 @@ class ReloadCacheControlBrowserTest : public ContentBrowserTest {
~ReloadCacheControlBrowserTest() override = default;
void SetUpOnMainThread() override {
+ // TODO(toyoshim): Tests in this file depend on current reload behavior,
+ // and should be modified when we enable the new reload behavior.
+ base::FeatureList::ClearInstanceForTesting();
+ std::unique_ptr<base::FeatureList> feature_list(new base::FeatureList);
+ feature_list->InitializeFromCommandLine(
+ std::string(), features::kNonValidatingReloadOnNormalReload.name);
+ base::FeatureList::SetInstance(std::move(feature_list));
+
+ SetUpTestServerOnMainThread();
+ }
+
+ void SetUpTestServerOnMainThread() {
// ContentBrowserTest creates embedded_test_server instance with
// a registered HandleFileRequest for "content/test/data".
// Because the handler is registered as the first handler, MonitorHandler
@@ -83,7 +95,7 @@ class ReloadCacheControlWithAnExperimentBrowserTest
features::kNonValidatingReloadOnNormalReload.name, std::string());
base::FeatureList::SetInstance(std::move(feature_list));
- ReloadCacheControlBrowserTest::SetUpOnMainThread();
+ SetUpTestServerOnMainThread();
}
DISALLOW_COPY_AND_ASSIGN(ReloadCacheControlWithAnExperimentBrowserTest);
« no previous file with comments | « content/browser/frame_host/navigator_impl_unittest.cc ('k') | content/public/common/content_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698