| 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/string16.h" |     8 #include "base/string16.h" | 
|     9 #include "base/string_util.h" |     9 #include "base/string_util.h" | 
|    10 #include "base/stringprintf.h" |    10 #include "base/stringprintf.h" | 
|    11 #include "base/utf_string_conversions.h" |    11 #include "base/utf_string_conversions.h" | 
|    12 #include "chrome/common/autofill/web_element_descriptor.h" |  | 
|    13 #include "chrome/common/form_data.h" |  | 
|    14 #include "chrome/renderer/autofill/form_autofill_util.h" |    12 #include "chrome/renderer/autofill/form_autofill_util.h" | 
|    15 #include "chrome/renderer/autofill/form_cache.h" |    13 #include "chrome/renderer/autofill/form_cache.h" | 
|    16 #include "chrome/test/base/chrome_render_view_test.h" |    14 #include "chrome/test/base/chrome_render_view_test.h" | 
 |    15 #include "components/autofill/common/form_data.h" | 
 |    16 #include "components/autofill/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/Source/Platform/chromium/public/WebString.h" |    18 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 
|    19 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" |    19 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" | 
|    20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |    20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 
|    21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |    21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 
|    22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
      .h" |    22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
      .h" | 
|    23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" |    23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" | 
|    24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" |    24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" | 
|    25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |    25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 
|    26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSelectElement.h" |    26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSelectElement.h" | 
| (...skipping 2936 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2963   expected.form_control_type = "text"; |  2963   expected.form_control_type = "text"; | 
|  2964   expected.max_length = WebInputElement::defaultMaxLength(); |  2964   expected.max_length = WebInputElement::defaultMaxLength(); | 
|  2965   EXPECT_FORM_FIELD_DATA_EQUALS(expected, fields[1]); |  2965   EXPECT_FORM_FIELD_DATA_EQUALS(expected, fields[1]); | 
|  2966  |  2966  | 
|  2967   expected.name = ASCIIToUTF16("country"); |  2967   expected.name = ASCIIToUTF16("country"); | 
|  2968   expected.value = ASCIIToUTF16("AL"); |  2968   expected.value = ASCIIToUTF16("AL"); | 
|  2969   expected.form_control_type = "select-one"; |  2969   expected.form_control_type = "select-one"; | 
|  2970   expected.max_length = 0; |  2970   expected.max_length = 0; | 
|  2971   EXPECT_FORM_FIELD_DATA_EQUALS(expected, fields[2]); |  2971   EXPECT_FORM_FIELD_DATA_EQUALS(expected, fields[2]); | 
|  2972 } |  2972 } | 
| OLD | NEW |