Index: components/password_manager/core/browser/password_manager_test_utils.h |
diff --git a/components/password_manager/core/browser/password_manager_test_utils.h b/components/password_manager/core/browser/password_manager_test_utils.h |
index 93f004ff4cbd86d1024bf7c6b0943d8fa0f35116..fe16f8c24ad5d6d2e858568f6a2ddebf2afa08b6 100644 |
--- a/components/password_manager/core/browser/password_manager_test_utils.h |
+++ b/components/password_manager/core/browser/password_manager_test_utils.h |
@@ -8,6 +8,7 @@ |
#include <iosfwd> |
#include <vector> |
+#include "base/feature_list.h" |
#include "base/memory/ref_counted.h" |
#include "components/autofill/core/common/password_form.h" |
#include "components/password_manager/core/browser/password_store.h" |
@@ -73,6 +74,13 @@ MATCHER_P(UnorderedPasswordFormElementsAre, expectations, "") { |
result_listener->stream()); |
} |
+// Helper function to initialize feature overrides via command-line flags |
+// supplied as |enable_features| and |disable_features| using the |
+// |feature_list|. |
+void SetFeatures(const std::vector<const base::Feature*>& enable_features, |
+ const std::vector<const base::Feature*>& disable_features, |
+ scoped_ptr<base::FeatureList> feature_list); |
+ |
class MockPasswordStoreObserver : public PasswordStore::Observer { |
public: |
MockPasswordStoreObserver(); |