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 f2065e9cb40071834a853c552da97fd3c1e49c69..5df6a61c1799f160bf89db6dccd5f7bdabefeff7 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 |
@@ -5,6 +5,7 @@ |
#ifndef COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_FEATURES_TEST_SUPPORT_H_ |
#define COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_FEATURES_TEST_SUPPORT_H_ |
+#include <map> |
#include <string> |
#include "base/feature_list.h" |
@@ -14,9 +15,9 @@ |
namespace subresource_filter { |
namespace testing { |
-// Helper to override the state of the |kSafeBrowsingSubresourceFilter| feature |
-// and the maximum activation state during tests. Expects a pre-existing global |
-// base::FieldTrialList singleton. |
+// Helper to override the state of the |kSafeBrowsingSubresourceFilter| feature, |
+// and its variation parameters, e.g., maximum activation state and activation |
+// scope. Expects a pre-existing global base::FieldTrialList singleton. |
class ScopedSubresourceFilterFeatureToggle { |
public: |
ScopedSubresourceFilterFeatureToggle( |
@@ -30,6 +31,10 @@ class ScopedSubresourceFilterFeatureToggle { |
const std::string& activation_scope, |
const std::string& activation_lists); |
+ ScopedSubresourceFilterFeatureToggle( |
+ base::FeatureList::OverrideState feature_state, |
+ std::map<std::string, std::string> variation_params); |
+ |
~ScopedSubresourceFilterFeatureToggle(); |
private: |