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 <stddef.h> |
| 6 |
5 #include <vector> | 7 #include <vector> |
6 | 8 |
7 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
| 10 #include "base/macros.h" |
8 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
9 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
10 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/test/base/chrome_render_view_test.h" | 14 #include "chrome/test/base/chrome_render_view_test.h" |
12 #include "components/autofill/content/renderer/form_autofill_util.h" | 15 #include "components/autofill/content/renderer/form_autofill_util.h" |
13 #include "components/autofill/content/renderer/form_cache.h" | 16 #include "components/autofill/content/renderer/form_cache.h" |
14 #include "components/autofill/core/common/autofill_data_validation.h" | 17 #include "components/autofill/core/common/autofill_data_validation.h" |
15 #include "components/autofill/core/common/form_data.h" | 18 #include "components/autofill/core/common/form_data.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "third_party/WebKit/public/platform/WebString.h" | 20 #include "third_party/WebKit/public/platform/WebString.h" |
(...skipping 4222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4240 ASSERT_NE(nullptr, web_frame); | 4243 ASSERT_NE(nullptr, web_frame); |
4241 | 4244 |
4242 FormCache form_cache(*web_frame); | 4245 FormCache form_cache(*web_frame); |
4243 std::vector<FormData> forms = form_cache.ExtractNewForms(); | 4246 std::vector<FormData> forms = form_cache.ExtractNewForms(); |
4244 EXPECT_EQ(test_case.expected_forms, forms.size()); | 4247 EXPECT_EQ(test_case.expected_forms, forms.size()); |
4245 } | 4248 } |
4246 } | 4249 } |
4247 | 4250 |
4248 } // namespace form_util | 4251 } // namespace form_util |
4249 } // namespace autofill | 4252 } // namespace autofill |
OLD | NEW |