| 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_BROWSER_AUTOFILL_TEST_PERSONAL_DATA_MANAGER_H_ | 5 #ifndef COMPONENTS_BROWSER_AUTOFILL_TEST_PERSONAL_DATA_MANAGER_H_ |
| 6 #define COMPONENTS_BROWSER_AUTOFILL_TEST_PERSONAL_DATA_MANAGER_H_ | 6 #define COMPONENTS_BROWSER_AUTOFILL_TEST_PERSONAL_DATA_MANAGER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "components/autofill/browser/autofill_profile.h" | 10 #include "components/autofill/browser/autofill_profile.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 // Adds |credit_card| to |credit_cards_|. This does not take ownership of | 25 // Adds |credit_card| to |credit_cards_|. This does not take ownership of |
| 26 // |credit_card|. | 26 // |credit_card|. |
| 27 void AddTestingCreditCard(CreditCard* credit_card); | 27 void AddTestingCreditCard(CreditCard* credit_card); |
| 28 | 28 |
| 29 virtual const std::vector<AutofillProfile*>& GetProfiles() OVERRIDE; | 29 virtual const std::vector<AutofillProfile*>& GetProfiles() OVERRIDE; |
| 30 virtual void SaveImportedProfile(const AutofillProfile& imported_profile) | 30 virtual void SaveImportedProfile(const AutofillProfile& imported_profile) |
| 31 OVERRIDE; | 31 OVERRIDE; |
| 32 | 32 |
| 33 const AutofillProfile& imported_profile() { return imported_profile_; } | 33 const AutofillProfile& imported_profile() { return imported_profile_; } |
| 34 virtual const std::vector<CreditCard*>& credit_cards() const OVERRIDE; | 34 virtual const std::vector<CreditCard*>& GetCreditCards() const OVERRIDE; |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 std::vector<AutofillProfile*> profiles_; | 37 std::vector<AutofillProfile*> profiles_; |
| 38 std::vector<CreditCard*> credit_cards_; | 38 std::vector<CreditCard*> credit_cards_; |
| 39 AutofillProfile imported_profile_; | 39 AutofillProfile imported_profile_; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace autofill | 42 } // namespace autofill |
| 43 | 43 |
| 44 #endif // COMPONENTS_BROWSER_AUTOFILL_TEST_PERSONAL_DATA_MANAGER_H_ | 44 #endif // COMPONENTS_BROWSER_AUTOFILL_TEST_PERSONAL_DATA_MANAGER_H_ |
| OLD | NEW |