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

Unified Diff: components/password_manager/core/browser/password_manager_test_utils.h

Issue 1668523002: [Password Manager] Switch password manager code to use the Feature framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/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();

Powered by Google App Engine
This is Rietveld 408576698