| 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/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| 11 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 11 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 12 #include "chrome/test/base/in_process_browser_test.h" | 12 #include "chrome/test/base/in_process_browser_test.h" |
| 13 #include "chrome/test/base/ui_test_utils.h" | 13 #include "chrome/test/base/ui_test_utils.h" |
| 14 #include "components/autofill/browser/autofill_manager.h" | |
| 15 #include "components/autofill/browser/data_driven_test.h" | |
| 16 #include "components/autofill/browser/form_structure.h" | |
| 17 #include "components/autofill/content/browser/autofill_driver_impl.h" | 14 #include "components/autofill/content/browser/autofill_driver_impl.h" |
| 15 #include "components/autofill/core/browser/autofill_manager.h" |
| 16 #include "components/autofill/core/browser/data_driven_test.h" |
| 17 #include "components/autofill/core/browser/form_structure.h" |
| 18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
| 19 | 19 |
| 20 namespace autofill { | 20 namespace autofill { |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 const base::FilePath::CharType kTestName[] = FILE_PATH_LITERAL("heuristics"); | 23 const base::FilePath::CharType kTestName[] = FILE_PATH_LITERAL("heuristics"); |
| 24 | 24 |
| 25 // Convert the |html| snippet to a data URI. | 25 // Convert the |html| snippet to a data URI. |
| 26 GURL HTMLToDataURI(const std::string& html) { | 26 GURL HTMLToDataURI(const std::string& html) { |
| 27 return GURL(std::string("data:text/html;charset=utf-8,") + html); | 27 return GURL(std::string("data:text/html;charset=utf-8,") + html); |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 IN_PROC_BROWSER_TEST_F(FormStructureBrowserTest, | 260 IN_PROC_BROWSER_TEST_F(FormStructureBrowserTest, |
| 261 MAYBE_DataDrivenHeuristics(20)) { | 261 MAYBE_DataDrivenHeuristics(20)) { |
| 262 const base::FilePath::CharType kFileNamePattern[] = | 262 const base::FilePath::CharType kFileNamePattern[] = |
| 263 FILE_PATH_LITERAL("20_*.html"); | 263 FILE_PATH_LITERAL("20_*.html"); |
| 264 RunDataDrivenTest(GetInputDirectory(kTestName), | 264 RunDataDrivenTest(GetInputDirectory(kTestName), |
| 265 GetOutputDirectory(kTestName), | 265 GetOutputDirectory(kTestName), |
| 266 kFileNamePattern); | 266 kFileNamePattern); |
| 267 } | 267 } |
| 268 | 268 |
| 269 } // namespace autofill | 269 } // namespace autofill |
| OLD | NEW |