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/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "chrome/test/base/chrome_render_view_test.h" | 13 #include "chrome/test/base/chrome_render_view_test.h" |
14 #include "components/autofill/content/renderer/form_autofill_util.h" | 14 #include "components/autofill/content/renderer/form_autofill_util.h" |
15 #include "components/autofill/content/renderer/form_cache.h" | 15 #include "components/autofill/content/renderer/form_cache.h" |
16 #include "components/autofill/core/common/form_data.h" | 16 #include "components/autofill/core/common/form_data.h" |
17 #include "components/autofill/core/common/web_element_descriptor.h" | 17 #include "components/autofill/core/common/web_element_descriptor.h" |
18 #include "components/variations/entropy_provider.h" | 18 #include "components/variations/entropy_provider.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 #include "third_party/WebKit/public/platform/WebString.h" | 20 #include "third_party/WebKit/public/platform/WebString.h" |
21 #include "third_party/WebKit/public/platform/WebVector.h" | 21 #include "third_party/WebKit/public/platform/WebVector.h" |
22 #include "third_party/WebKit/public/web/WebDocument.h" | 22 #include "third_party/WebKit/public/web/WebDocument.h" |
23 #include "third_party/WebKit/public/web/WebElement.h" | 23 #include "third_party/WebKit/public/web/WebElement.h" |
24 #include "third_party/WebKit/public/web/WebFormControlElement.h" | 24 #include "third_party/WebKit/public/web/WebFormControlElement.h" |
25 #include "third_party/WebKit/public/web/WebFormElement.h" | 25 #include "third_party/WebKit/public/web/WebFormElement.h" |
26 #include "third_party/WebKit/public/web/WebInputElement.h" | 26 #include "third_party/WebKit/public/web/WebInputElement.h" |
27 #include "third_party/WebKit/public/web/WebLocalFrame.h" | |
Ilya Sherman
2014/04/09 23:22:35
Hmm, why is this the only change in this file?
| |
27 #include "third_party/WebKit/public/web/WebNode.h" | 28 #include "third_party/WebKit/public/web/WebNode.h" |
28 #include "third_party/WebKit/public/web/WebSelectElement.h" | 29 #include "third_party/WebKit/public/web/WebSelectElement.h" |
29 #include "third_party/WebKit/public/web/WebTextAreaElement.h" | 30 #include "third_party/WebKit/public/web/WebTextAreaElement.h" |
30 | 31 |
31 using base::ASCIIToUTF16; | 32 using base::ASCIIToUTF16; |
32 using blink::WebDocument; | 33 using blink::WebDocument; |
33 using blink::WebElement; | 34 using blink::WebElement; |
34 using blink::WebFormControlElement; | 35 using blink::WebFormControlElement; |
35 using blink::WebFormElement; | 36 using blink::WebFormElement; |
36 using blink::WebFrame; | 37 using blink::WebFrame; |
(...skipping 3315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3352 EXPECT_FORM_FIELD_DATA_EQUALS(expected, fields[1]); | 3353 EXPECT_FORM_FIELD_DATA_EQUALS(expected, fields[1]); |
3353 | 3354 |
3354 expected.name = ASCIIToUTF16("country"); | 3355 expected.name = ASCIIToUTF16("country"); |
3355 expected.value = ASCIIToUTF16("AL"); | 3356 expected.value = ASCIIToUTF16("AL"); |
3356 expected.form_control_type = "select-one"; | 3357 expected.form_control_type = "select-one"; |
3357 expected.max_length = 0; | 3358 expected.max_length = 0; |
3358 EXPECT_FORM_FIELD_DATA_EQUALS(expected, fields[2]); | 3359 EXPECT_FORM_FIELD_DATA_EQUALS(expected, fields[2]); |
3359 } | 3360 } |
3360 | 3361 |
3361 } // namespace autofill | 3362 } // namespace autofill |
OLD | NEW |