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

Side by Side Diff: components/autofill/browser/autofill_common_test.cc

Issue 12902030: Make Encryptor a component. Used by //chrome and (soon) //components/webdata. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove duplicate include. Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "components/autofill/browser/autofill_common_test.h" 5 #include "components/autofill/browser/autofill_common_test.h"
6 6
7 #include "base/guid.h" 7 #include "base/guid.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/password_manager/encryptor.h"
11 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
12 #include "components/autofill/browser/autofill_profile.h" 11 #include "components/autofill/browser/autofill_profile.h"
13 #include "components/autofill/browser/credit_card.h" 12 #include "components/autofill/browser/credit_card.h"
14 #include "components/autofill/common/autofill_pref_names.h" 13 #include "components/autofill/common/autofill_pref_names.h"
15 #include "components/autofill/common/form_field_data.h" 14 #include "components/autofill/common/form_field_data.h"
16 #include "components/user_prefs/user_prefs.h" 15 #include "components/user_prefs/user_prefs.h"
16 #include "components/webdata/encryptor/encryptor.h"
17 17
18 namespace autofill_test { 18 namespace autofill_test {
19 19
20 void CreateTestFormField(const char* label, 20 void CreateTestFormField(const char* label,
21 const char* name, 21 const char* name,
22 const char* value, 22 const char* value,
23 const char* type, 23 const char* type,
24 FormFieldData* field) { 24 FormFieldData* field) {
25 field->label = ASCIIToUTF16(label); 25 field->label = ASCIIToUTF16(label);
26 field->name = ASCIIToUTF16(name); 26 field->name = ASCIIToUTF16(name);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 // Disable auxiliary profiles for unit testing. These reach out to system 102 // Disable auxiliary profiles for unit testing. These reach out to system
103 // services on the Mac. 103 // services on the Mac.
104 if (profile) { 104 if (profile) {
105 components::UserPrefs::Get(profile)->SetBoolean( 105 components::UserPrefs::Get(profile)->SetBoolean(
106 prefs::kAutofillAuxiliaryProfilesEnabled, false); 106 prefs::kAutofillAuxiliaryProfilesEnabled, false);
107 } 107 }
108 } 108 }
109 109
110 } // namespace autofill_test 110 } // namespace autofill_test
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | components/autofill/browser/personal_data_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698