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

Side by Side Diff: chrome/browser/autofill/autofill_common_unittest.h

Issue 2818033: AutoFill: Aggregate profile data. Remove the AutoFill InfoBar. (Closed)
Patch Set: Comment. Created 10 years, 5 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
« no previous file with comments | « chrome/browser/autofill/address.cc ('k') | chrome/browser/autofill/autofill_common_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_AUTOFILL_AUTOFILL_COMMON_UNITTEST_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_COMMON_UNITTEST_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_COMMON_UNITTEST_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_COMMON_UNITTEST_H_
7 7
8 class AutoFillProfile; 8 class AutoFillProfile;
9 class CreditCard; 9 class CreditCard;
10 10
11 // Common utilities shared amongst autofill unit tests. 11 namespace webkit_glue {
12 class FormField;
13 } // namespace webkit_glue
14
15 // Common utilities shared amongst AutoFill unit tests.
12 namespace autofill_unittest { 16 namespace autofill_unittest {
13 17
14 // A unit testing utility that is common to a number of the autofill unit 18 // Provides a quick way to populate a FormField with c-strings.
19 void CreateTestFormField(const char* label,
20 const char* name,
21 const char* value,
22 const char* type,
23 webkit_glue::FormField* field);
24
25 // A unit testing utility that is common to a number of the AutoFill unit
15 // tests. |SetProfileInfo| provides a quick way to populate a profile with 26 // tests. |SetProfileInfo| provides a quick way to populate a profile with
16 // c-strings. 27 // c-strings.
17 void SetProfileInfo(AutoFillProfile* profile, 28 void SetProfileInfo(AutoFillProfile* profile,
18 const char* label, const char* first_name, const char* middle_name, 29 const char* label, const char* first_name, const char* middle_name,
19 const char* last_name, const char* email, const char* company, 30 const char* last_name, const char* email, const char* company,
20 const char* address1, const char* address2, const char* city, 31 const char* address1, const char* address2, const char* city,
21 const char* state, const char* zipcode, const char* country, 32 const char* state, const char* zipcode, const char* country,
22 const char* phone, const char* fax); 33 const char* phone, const char* fax);
23 34
24 // A unit testing utility that is common to a number of the autofill unit 35 // A unit testing utility that is common to a number of the AutoFill unit
25 // tests. |SetCreditCardInfo| provides a quick way to populate a credit card 36 // tests. |SetCreditCardInfo| provides a quick way to populate a credit card
26 // with c-strings. 37 // with c-strings.
27 void SetCreditCardInfo(CreditCard* credit_card, 38 void SetCreditCardInfo(CreditCard* credit_card,
28 const char* label, const char* name_on_card, const char* type, 39 const char* label, const char* name_on_card, const char* type,
29 const char* card_number, const char* expiration_month, 40 const char* card_number, const char* expiration_month,
30 const char* expiration_year, const char* verification_code, 41 const char* expiration_year, const char* billing_address);
31 const char* billing_address, const char* shipping_address);
32 42
33 } // namespace 43 } // namespace autofill_unittest
34 44
35 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_COMMON_UNITTEST_H_ 45 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_COMMON_UNITTEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/address.cc ('k') | chrome/browser/autofill/autofill_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698