OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/format_macros.h" | 7 #include "base/format_macros.h" |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "chrome/test/base/chrome_render_view_test.h" | 12 #include "chrome/test/base/chrome_render_view_test.h" |
13 #include "components/autofill/common/form_data.h" | |
14 #include "components/autofill/common/web_element_descriptor.h" | |
15 #include "components/autofill/content/renderer/form_autofill_util.h" | 13 #include "components/autofill/content/renderer/form_autofill_util.h" |
16 #include "components/autofill/content/renderer/form_cache.h" | 14 #include "components/autofill/content/renderer/form_cache.h" |
| 15 #include "components/autofill/core/common/form_data.h" |
| 16 #include "components/autofill/core/common/web_element_descriptor.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 #include "third_party/WebKit/public/platform/WebString.h" |
| 19 #include "third_party/WebKit/public/platform/WebVector.h" |
18 #include "third_party/WebKit/public/web/WebDocument.h" | 20 #include "third_party/WebKit/public/web/WebDocument.h" |
19 #include "third_party/WebKit/public/web/WebElement.h" | 21 #include "third_party/WebKit/public/web/WebElement.h" |
20 #include "third_party/WebKit/public/web/WebFormControlElement.h" | 22 #include "third_party/WebKit/public/web/WebFormControlElement.h" |
21 #include "third_party/WebKit/public/web/WebFormElement.h" | 23 #include "third_party/WebKit/public/web/WebFormElement.h" |
22 #include "third_party/WebKit/public/web/WebInputElement.h" | 24 #include "third_party/WebKit/public/web/WebInputElement.h" |
23 #include "third_party/WebKit/public/web/WebNode.h" | 25 #include "third_party/WebKit/public/web/WebNode.h" |
24 #include "third_party/WebKit/public/web/WebSelectElement.h" | 26 #include "third_party/WebKit/public/web/WebSelectElement.h" |
25 #include "third_party/WebKit/public/platform/WebString.h" | |
26 #include "third_party/WebKit/public/platform/WebVector.h" | |
27 | 27 |
28 using WebKit::WebDocument; | 28 using WebKit::WebDocument; |
29 using WebKit::WebElement; | 29 using WebKit::WebElement; |
30 using WebKit::WebFormControlElement; | 30 using WebKit::WebFormControlElement; |
31 using WebKit::WebFormElement; | 31 using WebKit::WebFormElement; |
32 using WebKit::WebFrame; | 32 using WebKit::WebFrame; |
33 using WebKit::WebInputElement; | 33 using WebKit::WebInputElement; |
34 using WebKit::WebSelectElement; | 34 using WebKit::WebSelectElement; |
35 using WebKit::WebNode; | 35 using WebKit::WebNode; |
36 using WebKit::WebString; | 36 using WebKit::WebString; |
(...skipping 3059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3096 EXPECT_FORM_FIELD_DATA_EQUALS(expected, fields[1]); | 3096 EXPECT_FORM_FIELD_DATA_EQUALS(expected, fields[1]); |
3097 | 3097 |
3098 expected.name = ASCIIToUTF16("country"); | 3098 expected.name = ASCIIToUTF16("country"); |
3099 expected.value = ASCIIToUTF16("AL"); | 3099 expected.value = ASCIIToUTF16("AL"); |
3100 expected.form_control_type = "select-one"; | 3100 expected.form_control_type = "select-one"; |
3101 expected.max_length = 0; | 3101 expected.max_length = 0; |
3102 EXPECT_FORM_FIELD_DATA_EQUALS(expected, fields[2]); | 3102 EXPECT_FORM_FIELD_DATA_EQUALS(expected, fields[2]); |
3103 } | 3103 } |
3104 | 3104 |
3105 } // namespace autofill | 3105 } // namespace autofill |
OLD | NEW |