summaryrefslogtreecommitdiff
path: root/chromium/components/autofill/content/browser/wallet/mock_wallet_client.cc
blob: 10e84226ae01307373cf0de31bedfcc71fc89a10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2013 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.

#include "components/autofill/content/browser/wallet/mock_wallet_client.h"

namespace autofill {
namespace wallet {

MockWalletClient::MockWalletClient(net::URLRequestContextGetter* context,
                                   wallet::WalletClientDelegate* delegate,
                                   const GURL& source_url)
    : wallet::WalletClient(context, delegate, source_url) {}

MockWalletClient::~MockWalletClient() {}

void MockWalletClient::SaveToWallet(
    scoped_ptr<Instrument> instrument,
    scoped_ptr<Address> address,
    const WalletItems::MaskedInstrument* reference_instrument,
    const Address* reference_address) {
  SaveToWalletMock(instrument.get(),
                   address.get(),
                   reference_instrument,
                   reference_address);
}

}  // namespace wallet
}  // namespace autofill