Chromium Code Reviews| Index: chrome/browser/autofill/address_field.h |
| diff --git a/chrome/browser/autofill/address_field.h b/chrome/browser/autofill/address_field.h |
| index f2cc08a1b48e493eba1e3d8b9898729ea7bf267b..b2a7dc4211d01395a7f58365689b39eca7ad6b1e 100644 |
| --- a/chrome/browser/autofill/address_field.h |
| +++ b/chrome/browser/autofill/address_field.h |
| @@ -10,6 +10,7 @@ |
| #include "base/basictypes.h" |
| #include "base/compiler_specific.h" |
| +#include "base/gtest_prod_util.h" |
| #include "base/string16.h" |
| #include "chrome/browser/autofill/autofill_type.h" |
| #include "chrome/browser/autofill/field_types.h" |
| @@ -20,8 +21,6 @@ class AutofillScanner; |
| class AddressField : public FormField { |
| public: |
| - virtual bool GetFieldInfo(FieldTypeMap* field_type_map) const OVERRIDE; |
| - |
| static AddressField* Parse(AutofillScanner* scanner, bool is_ecml); |
| // Tries to determine the billing/shipping type of this address. |
| @@ -32,8 +31,31 @@ class AddressField : public FormField { |
| bool IsFullAddress(); |
|
Ilya Sherman
2011/05/19 05:44:16
This is used only in the unit tests -- should we p
dhollowa
2011/05/19 17:53:08
Done. Yes, this wasn't providing any meaningful c
|
| private: |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseOneLineAddress); |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseOneLineAddressBilling); |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseOneLineAddressShipping); |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseOneLineAddressEcml); |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseTwoLineAddress); |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseThreeLineAddress); |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseTwoLineAddressEcml); |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseCity); |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseCityEcml); |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseState); |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseStateEcml); |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseZip); |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseZipEcml); |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseStateAndZipOneLabel); |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseCountry); |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseCountryEcml); |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseTwoLineAddressMissingLabel); |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseCompany); |
| + FRIEND_TEST_ALL_PREFIXES(AddressFieldTest, ParseCompanyEcml); |
| + |
| AddressField(); |
| + // FormField: |
| + virtual bool ClassifyField(FieldTypeMap* map) const OVERRIDE; |
| + |
| static bool ParseCompany(AutofillScanner* scanner, |
| bool is_ecml, |
| AddressField* address_field); |