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 dc06a78e204cce58f55c3d9c3f545490e661f365..539773a1a28c0d54f35403fcbf715a78823cee03 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 |
@@ -21,11 +21,14 @@ namespace testing { |
class ScopedSubresourceFilterConfigurator { |
public: |
explicit ScopedSubresourceFilterConfigurator( |
- scoped_refptr<ConfigurationList> configs = nullptr); |
+ scoped_refptr<ConfigurationList> config_list = nullptr); |
explicit ScopedSubresourceFilterConfigurator(Configuration config); |
+ explicit ScopedSubresourceFilterConfigurator( |
+ std::vector<Configuration> configs); |
~ScopedSubresourceFilterConfigurator(); |
void ResetConfiguration(Configuration config); |
+ void ResetConfiguration(std::vector<Configuration> config); |
private: |
scoped_refptr<ConfigurationList> original_config_; |
@@ -38,8 +41,8 @@ class ScopedSubresourceFilterConfigurator { |
// |
// Clears the active subresource filtering configuration override, upon |
// construction, if any, and restores it on destruction. So while the instance |
-// is in scope, calls to GetActiveConfigurations() will default to returning the |
-// hard-coded configuration corresponding to the forced feature state. Tests |
+// is in scope, calls to GetEnabledConfigurations() will default to returning |
+// the hard-coded configuration corresponding to the forced feature state. Tests |
// that need to toggle both the feature and override the active configuration |
// should therefore do so in that order. |
class ScopedSubresourceFilterFeatureToggle { |