#ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_MOCK_WALLET_CLIENT_H_
#define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_MOCK_WALLET_CLIENT_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "components/autofill/content/browser/wallet/instrument.h"
#include "components/autofill/content/browser/wallet/wallet_address.h"
#include "components/autofill/content/browser/wallet/wallet_client.h"
#include "components/autofill/content/browser/wallet/wallet_items.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace autofill {
namespace wallet {
class MockWalletClient : public WalletClient {
public:
MockWalletClient(net::URLRequestContextGetter* context,
WalletClientDelegate* delegate,
const GURL& source_url);
virtual ~MockWalletClient();
MOCK_METHOD0(GetWalletItems, void());
MOCK_METHOD2(AcceptLegalDocuments,
void(const std::vector<WalletItems::LegalDocument*>& documents,
const std::string& google_transaction_id));
MOCK_METHOD2(AuthenticateInstrument,
void(const std::string& instrument_id,
const std::string& card_verification_number));
MOCK_METHOD1(GetFullWallet,
void(const WalletClient::FullWalletRequest& request));
virtual void SaveToWallet(
scoped_ptr<Instrument> instrument,
scoped_ptr<Address> address,
const WalletItems::MaskedInstrument* reference_instrument,
const Address* reference_address) OVERRIDE;
MOCK_METHOD4(SaveToWalletMock,
void(Instrument* instrument,
Address* address,
const WalletItems::MaskedInstrument* reference_instrument,
const Address* reference_address));
private:
DISALLOW_COPY_AND_ASSIGN(MockWalletClient);
};
}
}
#endif