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

Side by Side Diff: components/autofill/core/browser/autofill_common_test.h

Issue 23882013: [rAc] Persist selection of newly added cards and addresses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests, add a test Created 7 years, 3 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 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_AUTOFILL_CORE_BROWSER_AUTOFILL_COMMON_TEST_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_COMMON_TEST_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_COMMON_TEST_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_COMMON_TEST_H_
7 7
8 namespace content { 8 namespace content {
9 class BrowserContext; 9 class BrowserContext;
10 } 10 }
(...skipping 28 matching lines...) Expand all
39 39
40 // Returns a verified profile full of dummy info. 40 // Returns a verified profile full of dummy info.
41 AutofillProfile GetVerifiedProfile(); 41 AutofillProfile GetVerifiedProfile();
42 42
43 // Returns a verified profile full of dummy info, different to the above. 43 // Returns a verified profile full of dummy info, different to the above.
44 AutofillProfile GetVerifiedProfile2(); 44 AutofillProfile GetVerifiedProfile2();
45 45
46 // Returns a credit card full of dummy info. 46 // Returns a credit card full of dummy info.
47 CreditCard GetCreditCard(); 47 CreditCard GetCreditCard();
48 48
49 // Returns a credit card full of dummy info, different to the above.
50 CreditCard GetCreditCard2();
51
49 // Returns a verified credit card full of dummy info. 52 // Returns a verified credit card full of dummy info.
50 CreditCard GetVerifiedCreditCard(); 53 CreditCard GetVerifiedCreditCard();
51 54
55 // Returns a verified credit card full of dummy info, different to the above.
56 CreditCard GetVerifiedCreditCard2();
57
52 // A unit testing utility that is common to a number of the Autofill unit 58 // A unit testing utility that is common to a number of the Autofill unit
53 // tests. |SetProfileInfo| provides a quick way to populate a profile with 59 // tests. |SetProfileInfo| provides a quick way to populate a profile with
54 // c-strings. 60 // c-strings.
55 void SetProfileInfo(AutofillProfile* profile, 61 void SetProfileInfo(AutofillProfile* profile,
56 const char* first_name, const char* middle_name, 62 const char* first_name, const char* middle_name,
57 const char* last_name, const char* email, const char* company, 63 const char* last_name, const char* email, const char* company,
58 const char* address1, const char* address2, const char* city, 64 const char* address1, const char* address2, const char* city,
59 const char* state, const char* zipcode, const char* country, 65 const char* state, const char* zipcode, const char* country,
60 const char* phone); 66 const char* phone);
61 67
(...skipping 13 matching lines...) Expand all
75 81
76 // TODO(isherman): We should do this automatically for all tests, not manually 82 // TODO(isherman): We should do this automatically for all tests, not manually
77 // on a per-test basis: http://crbug.com/57221 83 // on a per-test basis: http://crbug.com/57221
78 // Disables or mocks out code that would otherwise reach out to system services. 84 // Disables or mocks out code that would otherwise reach out to system services.
79 void DisableSystemServices(content::BrowserContext* browser_context); 85 void DisableSystemServices(content::BrowserContext* browser_context);
80 86
81 } // namespace test 87 } // namespace test
82 } // namespace autofill 88 } // namespace autofill
83 89
84 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_COMMON_TEST_H_ 90 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_COMMON_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698