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

Unified Diff: content/browser/memory/memory_coordinator_browsertest.cc

Issue 2484613002: Migrate more tests to ScopedFeatureList. (Closed)
Patch Set: rebase Created 4 years, 1 month 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: content/browser/memory/memory_coordinator_browsertest.cc
diff --git a/content/browser/memory/memory_coordinator_browsertest.cc b/content/browser/memory/memory_coordinator_browsertest.cc
index 096163fa3aecdc676632489b571c28cc7d495874..df22a9c4936be9abae338f13339191e82ba50fc4 100644
--- a/content/browser/memory/memory_coordinator_browsertest.cc
+++ b/content/browser/memory/memory_coordinator_browsertest.cc
@@ -3,6 +3,8 @@
// found in the LICENSE file.
#include "content/browser/memory/memory_coordinator.h"
+
+#include "base/test/scoped_feature_list.h"
#include "content/browser/browser_main_loop.h"
#include "content/public/common/content_features.h"
#include "content/public/test/content_browser_test.h"
@@ -15,11 +17,13 @@ class MemoryCoordinatorTest : public ContentBrowserTest {
MemoryCoordinatorTest() {}
void SetUp() override {
- MemoryCoordinator::EnableFeaturesForTesting();
+ scoped_feature_list_.InitAndEnableFeature(features::kMemoryCoordinator);
ContentBrowserTest::SetUp();
}
private:
+ base::test::ScopedFeatureList scoped_feature_list_;
+
DISALLOW_COPY_AND_ASSIGN(MemoryCoordinatorTest);
};
« no previous file with comments | « content/browser/memory/memory_coordinator.cc ('k') | content/browser/memory/memory_coordinator_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698