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

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

Issue 1414463004: Implement origin-based deletion for passwords in PasswordDefaultMac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 5 years, 2 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 a3c1a6df43930abecc2dec331d21a6d60b74e7f1..aafd1c650dae9a5634745e51196185773d4ca2bc 100644
--- a/components/password_manager/core/browser/password_manager_test_utils.h
+++ b/components/password_manager/core/browser/password_manager_test_utils.h
@@ -10,6 +10,7 @@
#include "base/memory/scoped_ptr.h"
#include "components/autofill/core/common/password_form.h"
+#include "components/password_manager/core/browser/password_store.h"
#include "testing/gmock/include/gmock/gmock.h"
// TODO(sync): This file must eventually be refactored away -- crbug.com/87185.
@@ -61,6 +62,14 @@ MATCHER_P(UnorderedPasswordFormElementsAre, expectations, "") {
result_listener->stream());
}
+class MockPasswordStoreObserver : public PasswordStore::Observer {
Timo Reimann 2015/10/20 20:47:09 Completely equal (but distinct) implementations of
vasilii 2015/10/21 16:47:56 Acknowledged.
+ public:
+ MockPasswordStoreObserver();
+ ~MockPasswordStoreObserver();
+
+ MOCK_METHOD1(OnLoginsChanged, void(const PasswordStoreChangeList& changes));
+};
+
} // namespace password_manager
#endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_TEST_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698