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

Unified Diff: chrome/browser/autofill/select_control_handler_unittest.cc

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 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
Index: chrome/browser/autofill/select_control_handler_unittest.cc
diff --git a/chrome/browser/autofill/select_control_handler_unittest.cc b/chrome/browser/autofill/select_control_handler_unittest.cc
index 297765552fcbc530fdbe6983f0657e124cfa20f5..7d74ab6549e546e031e1b79d2558d410d1071b0e 100644
--- a/chrome/browser/autofill/select_control_handler_unittest.cc
+++ b/chrome/browser/autofill/select_control_handler_unittest.cc
@@ -8,8 +8,8 @@
#include "chrome/browser/autofill/autofill_type.h"
#include "chrome/browser/autofill/credit_card.h"
#include "chrome/browser/autofill/select_control_handler.h"
+#include "chrome/common/form_field_data.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "webkit/forms/form_field.h"
typedef testing::Test SelectControlHandlerTest;
@@ -21,7 +21,7 @@ TEST_F(SelectControlHandlerTest, CreditCardMonthExact) {
for (size_t i = 0; i < arraysize(kMonthsNumeric); ++i)
options[i] = ASCIIToUTF16(kMonthsNumeric[i]);
- webkit::forms::FormField field;
+ FormFieldData field;
field.form_control_type = ASCIIToUTF16("select-one");
field.option_values = options;
field.option_contents = options;
@@ -41,7 +41,7 @@ TEST_F(SelectControlHandlerTest, CreditCardMonthAbbreviated) {
for (size_t i = 0; i < arraysize(kMonthsAbbreviated); ++i)
options[i] = ASCIIToUTF16(kMonthsAbbreviated[i]);
- webkit::forms::FormField field;
+ FormFieldData field;
field.form_control_type = ASCIIToUTF16("select-one");
field.option_values = options;
field.option_contents = options;
@@ -61,7 +61,7 @@ TEST_F(SelectControlHandlerTest, CreditCardMonthFull) {
for (size_t i = 0; i < arraysize(kMonthsFull); ++i)
options[i] = ASCIIToUTF16(kMonthsFull[i]);
- webkit::forms::FormField field;
+ FormFieldData field;
field.form_control_type = ASCIIToUTF16("select-one");
field.option_values = options;
field.option_contents = options;
@@ -80,7 +80,7 @@ TEST_F(SelectControlHandlerTest, CreditCardMonthNumeric) {
for (size_t i = 0; i < arraysize(kMonthsNumeric); ++i)
options[i] = ASCIIToUTF16(kMonthsNumeric[i]);
- webkit::forms::FormField field;
+ FormFieldData field;
field.form_control_type = ASCIIToUTF16("select-one");
field.option_values = options;
field.option_contents = options;
@@ -99,7 +99,7 @@ TEST_F(SelectControlHandlerTest, AddressCountryFull) {
for (size_t i = 0; i < arraysize(kCountries); ++i)
options[i] = ASCIIToUTF16(kCountries[i]);
- webkit::forms::FormField field;
+ FormFieldData field;
field.form_control_type = ASCIIToUTF16("select-one");
field.option_values = options;
field.option_contents = options;
@@ -118,7 +118,7 @@ TEST_F(SelectControlHandlerTest, AddressCountryAbbrev) {
for (size_t i = 0; i < arraysize(kCountries); ++i)
options[i] = ASCIIToUTF16(kCountries[i]);
- webkit::forms::FormField field;
+ FormFieldData field;
field.form_control_type = ASCIIToUTF16("select-one");
field.option_values = options;
field.option_contents = options;
@@ -137,7 +137,7 @@ TEST_F(SelectControlHandlerTest, AddressStateFull) {
for (size_t i = 0; i < arraysize(kStates); ++i)
options[i] = ASCIIToUTF16(kStates[i]);
- webkit::forms::FormField field;
+ FormFieldData field;
field.form_control_type = ASCIIToUTF16("select-one");
field.option_values = options;
field.option_contents = options;
@@ -156,7 +156,7 @@ TEST_F(SelectControlHandlerTest, AddressStateAbbrev) {
for (size_t i = 0; i < arraysize(kStates); ++i)
options[i] = ASCIIToUTF16(kStates[i]);
- webkit::forms::FormField field;
+ FormFieldData field;
field.form_control_type = ASCIIToUTF16("select-one");
field.option_values = options;
field.option_contents = options;
@@ -178,7 +178,7 @@ TEST_F(SelectControlHandlerTest, FillByValue) {
contents[i] = ASCIIToUTF16(base::StringPrintf("%d", static_cast<int>(i)));
}
- webkit::forms::FormField field;
+ FormFieldData field;
field.form_control_type = ASCIIToUTF16("select-one");
field.option_values = values;
field.option_contents = contents;
@@ -200,7 +200,7 @@ TEST_F(SelectControlHandlerTest, FillByContents) {
contents[i] = ASCIIToUTF16(kStates[i]);
}
- webkit::forms::FormField field;
+ FormFieldData field;
field.form_control_type = ASCIIToUTF16("select-one");
field.option_values = values;
field.option_contents = contents;
« no previous file with comments | « chrome/browser/autofill/select_control_handler.cc ('k') | chrome/browser/autofill/test_autofill_external_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698