#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_PASSWORD_STORE_H_
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_PASSWORD_STORE_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"
namespace content {
class BrowserContext;
}
class MockPasswordStore : public PasswordStore {
public:
MockPasswordStore();
MOCK_METHOD1(RemoveLogin, void(const autofill::PasswordForm&));
MOCK_METHOD3(GetLogins, void(
const autofill::PasswordForm&,
PasswordStore::AuthorizationPromptPolicy prompt_policy,
PasswordStoreConsumer*));
MOCK_METHOD1(AddLogin, void(const autofill::PasswordForm&));
MOCK_METHOD1(UpdateLogin, void(const autofill::PasswordForm&));
MOCK_METHOD0(ReportMetrics, void());
MOCK_METHOD0(ReportMetricsImpl, void());
MOCK_METHOD1(AddLoginImpl,
PasswordStoreChangeList(const autofill::PasswordForm&));
MOCK_METHOD1(UpdateLoginImpl,
PasswordStoreChangeList(const autofill::PasswordForm&));
MOCK_METHOD1(RemoveLoginImpl,
PasswordStoreChangeList(const autofill::PasswordForm&));
MOCK_METHOD2(RemoveLoginsCreatedBetweenImpl,
PasswordStoreChangeList(const base::Time&, const base::Time&));
MOCK_METHOD3(GetLoginsImpl,
void(const autofill::PasswordForm& form,
PasswordStore::AuthorizationPromptPolicy prompt_policy,
const ConsumerCallbackRunner& callback_runner));
MOCK_METHOD1(GetAutofillableLoginsImpl, void(GetLoginsRequest*));
MOCK_METHOD1(GetBlacklistLoginsImpl, void(GetLoginsRequest*));
MOCK_METHOD1(FillAutofillableLogins,
bool(std::vector<autofill::PasswordForm*>*));
MOCK_METHOD1(FillBlacklistLogins,
bool(std::vector<autofill::PasswordForm*>*));
protected:
virtual ~MockPasswordStore();
};
#endif