| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_MOCK_WALLET_CLIENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_MOCK_WALLET_CLIENT_H_ |
| 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_MOCK_WALLET_CLIENT_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_MOCK_WALLET_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 scoped_ptr<wallet::Address> address, | 44 scoped_ptr<wallet::Address> address, |
| 45 const GURL& source_url) OVERRIDE { | 45 const GURL& source_url) OVERRIDE { |
| 46 SaveToWalletMock(instrument.get(), address.get(), source_url); | 46 SaveToWalletMock(instrument.get(), address.get(), source_url); |
| 47 } | 47 } |
| 48 | 48 |
| 49 MOCK_METHOD3(SaveToWalletMock, | 49 MOCK_METHOD3(SaveToWalletMock, |
| 50 void(Instrument* instrument, | 50 void(Instrument* instrument, |
| 51 Address* address, | 51 Address* address, |
| 52 const GURL& source_url)); | 52 const GURL& source_url)); |
| 53 | 53 |
| 54 MOCK_METHOD4(SendAutocheckoutStatus, | |
| 55 void(autofill::AutocheckoutStatus status, | |
| 56 const GURL& source_url, | |
| 57 const std::vector<AutocheckoutStatistic>& latency_statistics, | |
| 58 const std::string& google_transaction_id)); | |
| 59 | |
| 60 private: | 54 private: |
| 61 DISALLOW_COPY_AND_ASSIGN(MockWalletClient); | 55 DISALLOW_COPY_AND_ASSIGN(MockWalletClient); |
| 62 }; | 56 }; |
| 63 | 57 |
| 64 } // namespace wallet | 58 } // namespace wallet |
| 65 } // namespace autofill | 59 } // namespace autofill |
| 66 | 60 |
| 67 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_MOCK_WALLET_CLIENT_H_ | 61 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_MOCK_WALLET_CLIENT_H_ |
| OLD | NEW |