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

Unified Diff: base/test/scoped_feature_list.h

Issue 2834583002: Change ScopedFeatureList to overrides FeatureList not reset (Closed)
Patch Set: Created 3 years, 8 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: base/test/scoped_feature_list.h
diff --git a/base/test/scoped_feature_list.h b/base/test/scoped_feature_list.h
index 99e07f5374a96bf9668e9805da592cc9cd4e5805..ccca5736875010acd2c3ebcc1312d35b65d13fe8 100644
--- a/base/test/scoped_feature_list.h
+++ b/base/test/scoped_feature_list.h
@@ -47,6 +47,13 @@ class ScopedFeatureList final {
// feature.
void InitAndDisableFeature(const base::Feature& feature);
+ // Initializes and registers a FeatureList instance with
+ // override_enabled_features and override_disabled_features overrides
+ // current feature_list.
+ void InitWithFeatureListAndOverrides(
+ const std::vector<std::string>& override_enabled_features,
+ const std::vector<std::string>& override_disabled_features);
+
private:
std::unique_ptr<FeatureList> original_feature_list_;

Powered by Google App Engine
This is Rietveld 408576698