blob: 78985f795575960087eb5b8d3a56487635e1a79c [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STUB_PASSWORD_MANAGER_CLIENT_H_
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STUB_PASSWORD_MANAGER_CLIENT_H_
#include "components/password_manager/core/browser/password_manager_client.h"
namespace password_manager {
// Use this class as a base for mock or test clients to avoid stubbing
// uninteresting pure virtual methods. All the implemented methods are just
// trivial stubs. Do NOT use in production, only use in tests.
class StubPasswordManagerClient : public PasswordManagerClient {
public:
StubPasswordManagerClient();
virtual ~StubPasswordManagerClient();
// PasswordManagerClient:
virtual bool IsSyncAccountCredential(
const std::string& username, const std::string& origin) const OVERRIDE;
virtual void PromptUserToSavePassword(PasswordFormManager* form_to_save)
OVERRIDE;
virtual void AuthenticateAutofillAndFillForm(
scoped_ptr<autofill::PasswordFormFillData> fill_data) OVERRIDE;
virtual PrefService* GetPrefs() OVERRIDE;
virtual PasswordStore* GetPasswordStore() OVERRIDE;
virtual PasswordManagerDriver* GetDriver() OVERRIDE;
private:
DISALLOW_COPY_AND_ASSIGN(StubPasswordManagerClient);
};
} // namespace password_manager
#endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STUB_PASSWORD_MANAGER_CLIENT_H_