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

Unified Diff: components/subresource_filter/core/browser/subresource_filter_features_test_support.h

Issue 2226063002: Add a ScopedFeatureList class for testing and start using it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix issue in previous patchset. Created 4 years, 4 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: components/subresource_filter/core/browser/subresource_filter_features_test_support.h
diff --git a/components/subresource_filter/core/browser/subresource_filter_features_test_support.h b/components/subresource_filter/core/browser/subresource_filter_features_test_support.h
index eedc83c1d27819f9ef2a6420b998c00641f99f91..6ef97f22cb51986327ab03ef910193ba9c6c93c6 100644
--- a/components/subresource_filter/core/browser/subresource_filter_features_test_support.h
+++ b/components/subresource_filter/core/browser/subresource_filter_features_test_support.h
@@ -9,6 +9,7 @@
#include "base/feature_list.h"
#include "base/macros.h"
+#include "base/test/scoped_feature_list.h"
namespace subresource_filter {
namespace testing {
@@ -25,6 +26,8 @@ class ScopedSubresourceFilterFeatureToggle {
~ScopedSubresourceFilterFeatureToggle();
private:
+ base::test::ScopedFeatureList scoped_feature_list_;
+
DISALLOW_COPY_AND_ASSIGN(ScopedSubresourceFilterFeatureToggle);
};

Powered by Google App Engine
This is Rietveld 408576698