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/core/browser/autofill_profile.h" |
11 #include "components/autofill/browser/credit_card.h" | 11 #include "components/autofill/core/browser/credit_card.h" |
12 #include "components/autofill/browser/personal_data_manager.h" | 12 #include "components/autofill/core/browser/personal_data_manager.h" |
13 | 13 |
14 namespace autofill { | 14 namespace autofill { |
15 | 15 |
16 // A simplistic PersonalDataManager used for testing. | 16 // A simplistic PersonalDataManager used for testing. |
17 class TestPersonalDataManager : public PersonalDataManager { | 17 class TestPersonalDataManager : public PersonalDataManager { |
18 public: | 18 public: |
19 TestPersonalDataManager(); | 19 TestPersonalDataManager(); |
20 virtual ~TestPersonalDataManager(); | 20 virtual ~TestPersonalDataManager(); |
21 | 21 |
22 // Adds |profile| to |profiles_|. This does not take ownership of |profile|. | 22 // Adds |profile| to |profiles_|. This does not take ownership of |profile|. |
(...skipping 12 matching lines...) Expand all Loading... |
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 |