Index: chrome/browser/autofill/phone_field_unittest.cc |
diff --git a/chrome/browser/autofill/phone_field_unittest.cc b/chrome/browser/autofill/phone_field_unittest.cc |
index cd8baf5e0b0f0dca4d459f51498e4cd6395c1666..5bfbace5c17bd9a4050867ec37609ef86b31a1ea 100644 |
--- a/chrome/browser/autofill/phone_field_unittest.cc |
+++ b/chrome/browser/autofill/phone_field_unittest.cc |
@@ -8,8 +8,8 @@ |
#include "chrome/browser/autofill/autofill_field.h" |
#include "chrome/browser/autofill/autofill_scanner.h" |
#include "chrome/browser/autofill/phone_field.h" |
+#include "chrome/common/form_field_data.h" |
#include "testing/gtest/include/gtest/gtest.h" |
-#include "webkit/forms/form_field.h" |
class PhoneFieldTest : public testing::Test { |
public: |
@@ -43,7 +43,7 @@ TEST_F(PhoneFieldTest, NonParse) { |
} |
TEST_F(PhoneFieldTest, ParseOneLinePhone) { |
- webkit::forms::FormField field; |
+ FormFieldData field; |
field.form_control_type = ASCIIToUTF16("text"); |
field.label = ASCIIToUTF16("Phone"); |
@@ -60,7 +60,7 @@ TEST_F(PhoneFieldTest, ParseOneLinePhone) { |
} |
TEST_F(PhoneFieldTest, ParseTwoLinePhone) { |
- webkit::forms::FormField field; |
+ FormFieldData field; |
field.form_control_type = ASCIIToUTF16("text"); |
field.label = ASCIIToUTF16("Area Code"); |
@@ -89,7 +89,7 @@ TEST_F(PhoneFieldTest, ThreePartPhoneNumber) { |
// <country code> - <area code> - <phone>. The only distinguishing feature is |
// size: <prefix> is no bigger than 3 characters, and <suffix> is no bigger |
// than 4. |
- webkit::forms::FormField field; |
+ FormFieldData field; |
field.form_control_type = ASCIIToUTF16("text"); |
field.label = ASCIIToUTF16("Phone:"); |
@@ -133,7 +133,7 @@ TEST_F(PhoneFieldTest, ThreePartPhoneNumber) { |
// encountered in http://crbug.com/40694 with page |
// https://www.wrapables.com/jsp/Signup.jsp. |
TEST_F(PhoneFieldTest, ThreePartPhoneNumberPrefixSuffix) { |
- webkit::forms::FormField field; |
+ FormFieldData field; |
field.form_control_type = ASCIIToUTF16("text"); |
field.label = ASCIIToUTF16("Phone:"); |
@@ -164,7 +164,7 @@ TEST_F(PhoneFieldTest, ThreePartPhoneNumberPrefixSuffix) { |
} |
TEST_F(PhoneFieldTest, ThreePartPhoneNumberPrefixSuffix2) { |
- webkit::forms::FormField field; |
+ FormFieldData field; |
field.form_control_type = ASCIIToUTF16("text"); |
field.label = ASCIIToUTF16("("); |
@@ -200,7 +200,7 @@ TEST_F(PhoneFieldTest, ThreePartPhoneNumberPrefixSuffix2) { |
TEST_F(PhoneFieldTest, CountryAndCityAndPhoneNumber) { |
// Phone in format <country code>:3 - <city and number>:10 |
// The |maxlength| is considered, otherwise it's too broad. |
- webkit::forms::FormField field; |
+ FormFieldData field; |
field.form_control_type = ASCIIToUTF16("text"); |
field.label = ASCIIToUTF16("Phone Number"); |