| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/autofill/autofill_common_test.h" | 5 #include "chrome/browser/autofill/autofill_common_test.h" |
| 6 | 6 |
| 7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/autofill/autofill_profile.h" | 9 #include "chrome/browser/autofill/autofill_profile.h" |
| 10 #include "chrome/browser/autofill/credit_card.h" | 10 #include "chrome/browser/autofill/credit_card.h" |
| 11 #include "chrome/browser/password_manager/encryptor.h" | 11 #include "chrome/browser/password_manager/encryptor.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/common/form_field_data.h" | |
| 14 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 14 #include "components/autofill/common/form_field_data.h" |
| 15 #include "components/user_prefs/user_prefs.h" | 15 #include "components/user_prefs/user_prefs.h" |
| 16 | 16 |
| 17 namespace autofill_test { | 17 namespace autofill_test { |
| 18 | 18 |
| 19 void CreateTestFormField(const char* label, | 19 void CreateTestFormField(const char* label, |
| 20 const char* name, | 20 const char* name, |
| 21 const char* value, | 21 const char* value, |
| 22 const char* type, | 22 const char* type, |
| 23 FormFieldData* field) { | 23 FormFieldData* field) { |
| 24 field->label = ASCIIToUTF16(label); | 24 field->label = ASCIIToUTF16(label); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 // Disable auxiliary profiles for unit testing. These reach out to system | 84 // Disable auxiliary profiles for unit testing. These reach out to system |
| 85 // services on the Mac. | 85 // services on the Mac. |
| 86 if (profile) { | 86 if (profile) { |
| 87 components::UserPrefs::Get(profile)->SetBoolean( | 87 components::UserPrefs::Get(profile)->SetBoolean( |
| 88 prefs::kAutofillAuxiliaryProfilesEnabled, false); | 88 prefs::kAutofillAuxiliaryProfilesEnabled, false); |
| 89 } | 89 } |
| 90 } | 90 } |
| 91 | 91 |
| 92 } // namespace autofill_test | 92 } // namespace autofill_test |
| OLD | NEW |