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

Unified Diff: components/autofill/browser/autofill_common_test.h

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/autofill/browser/autofill-inl.h ('k') | components/autofill/browser/autofill_common_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/browser/autofill_common_test.h
diff --git a/components/autofill/browser/autofill_common_test.h b/components/autofill/browser/autofill_common_test.h
deleted file mode 100644
index fa0fa7056693c22b2c731894df1c22b20e7da4aa..0000000000000000000000000000000000000000
--- a/components/autofill/browser/autofill_common_test.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_COMMON_TEST_H_
-#define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_COMMON_TEST_H_
-
-class Profile;
-
-namespace autofill {
-
-class AutofillProfile;
-class CreditCard;
-struct FormFieldData;
-
-// Common utilities shared amongst Autofill tests.
-namespace test {
-
-// Provides a quick way to populate a FormField with c-strings.
-void CreateTestFormField(const char* label,
- const char* name,
- const char* value,
- const char* type,
- FormFieldData* field);
-
-// Returns a profile full of dummy info.
-AutofillProfile GetFullProfile();
-
-// Returns a profile full of dummy info, different to the above.
-AutofillProfile GetFullProfile2();
-
-// Returns a verified profile full of dummy info.
-AutofillProfile GetVerifiedProfile();
-
-// Returns a verified profile full of dummy info, different to the above.
-AutofillProfile GetVerifiedProfile2();
-
-// Returns a credit card full of dummy info.
-CreditCard GetCreditCard();
-
-// Returns a verified credit card full of dummy info.
-CreditCard GetVerifiedCreditCard();
-
-// A unit testing utility that is common to a number of the Autofill unit
-// tests. |SetProfileInfo| provides a quick way to populate a profile with
-// c-strings.
-void SetProfileInfo(AutofillProfile* profile,
- const char* first_name, const char* middle_name,
- const char* last_name, const char* email, const char* company,
- const char* address1, const char* address2, const char* city,
- const char* state, const char* zipcode, const char* country,
- const char* phone);
-
-void SetProfileInfoWithGuid(AutofillProfile* profile,
- const char* guid, const char* first_name, const char* middle_name,
- const char* last_name, const char* email, const char* company,
- const char* address1, const char* address2, const char* city,
- const char* state, const char* zipcode, const char* country,
- const char* phone);
-
-// A unit testing utility that is common to a number of the Autofill unit
-// tests. |SetCreditCardInfo| provides a quick way to populate a credit card
-// with c-strings.
-void SetCreditCardInfo(CreditCard* credit_card,
- const char* name_on_card, const char* card_number,
- const char* expiration_month, const char* expiration_year);
-
-// TODO(isherman): We should do this automatically for all tests, not manually
-// on a per-test basis: http://crbug.com/57221
-// Disables or mocks out code that would otherwise reach out to system services.
-void DisableSystemServices(Profile* profile);
-
-} // namespace test
-} // namespace autofill
-
-#endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_COMMON_TEST_H_
« no previous file with comments | « components/autofill/browser/autofill-inl.h ('k') | components/autofill/browser/autofill_common_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698