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

Unified Diff: components/autofill/content/browser/wallet/mock_wallet_client.h

Issue 1288093004: rAc Wallet extirpation round 4: clean out RPC code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gn Created 5 years, 4 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/autofill/content/browser/wallet/mock_wallet_client.h
diff --git a/components/autofill/content/browser/wallet/mock_wallet_client.h b/components/autofill/content/browser/wallet/mock_wallet_client.h
deleted file mode 100644
index 25bdd21e51aa7e6a6ce36abfc53124ce294461ea..0000000000000000000000000000000000000000
--- a/components/autofill/content/browser/wallet/mock_wallet_client.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// 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.
-
-#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 {
-
-// A mock version of WalletClient that never issues real requests, just records
-// mock calls to each entry point.
-class MockWalletClient : public WalletClient {
- public:
- MockWalletClient(net::URLRequestContextGetter* context,
- WalletClientDelegate* delegate,
- const GURL& source_url);
- ~MockWalletClient() override;
-
- MOCK_METHOD2(GetWalletItems,
- void(const base::string16&, const base::string16&));
-
- 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));
-
- // Methods with scoped_ptrs can't be mocked but by using the implementation
- // below the same effect can be achieved.
- 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);
-};
-
-} // namespace wallet
-} // namespace autofill
-
-#endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_MOCK_WALLET_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698