| 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/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 } | 100 } |
| 101 return forms_string; | 101 return forms_string; |
| 102 } | 102 } |
| 103 | 103 |
| 104 // Heuristics tests timeout on Windows. See http://crbug.com/85276 | 104 // Heuristics tests timeout on Windows. See http://crbug.com/85276 |
| 105 #if defined(OS_WIN) | 105 #if defined(OS_WIN) |
| 106 #define MAYBE_DataDrivenHeuristics(n) DISABLED_DataDrivenHeuristics##n | 106 #define MAYBE_DataDrivenHeuristics(n) DISABLED_DataDrivenHeuristics##n |
| 107 #else | 107 #else |
| 108 #define MAYBE_DataDrivenHeuristics(n) DataDrivenHeuristics##n | 108 #define MAYBE_DataDrivenHeuristics(n) DataDrivenHeuristics##n |
| 109 #endif | 109 #endif |
| 110 IN_PROC_BROWSER_TEST_F(FormStructureBrowserTest, DataDrivenHeuristics00) { | 110 IN_PROC_BROWSER_TEST_F(FormStructureBrowserTest, |
| 111 MAYBE_DataDrivenHeuristics(00)) { |
| 111 const base::FilePath::CharType kFileNamePattern[] = | 112 const base::FilePath::CharType kFileNamePattern[] = |
| 112 FILE_PATH_LITERAL("00_*.html"); | 113 FILE_PATH_LITERAL("00_*.html"); |
| 113 RunDataDrivenTest(GetInputDirectory(kTestName), | 114 RunDataDrivenTest(GetInputDirectory(kTestName), |
| 114 GetOutputDirectory(kTestName), | 115 GetOutputDirectory(kTestName), |
| 115 kFileNamePattern); | 116 kFileNamePattern); |
| 116 } | 117 } |
| 117 | 118 |
| 118 IN_PROC_BROWSER_TEST_F(FormStructureBrowserTest, DataDrivenHeuristics01) { | 119 IN_PROC_BROWSER_TEST_F(FormStructureBrowserTest, DataDrivenHeuristics01) { |
| 119 const base::FilePath::CharType kFileNamePattern[] = | 120 const base::FilePath::CharType kFileNamePattern[] = |
| 120 FILE_PATH_LITERAL("01_*.html"); | 121 FILE_PATH_LITERAL("01_*.html"); |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 IN_PROC_BROWSER_TEST_F(FormStructureBrowserTest, | 272 IN_PROC_BROWSER_TEST_F(FormStructureBrowserTest, |
| 272 MAYBE_DataDrivenHeuristics(20)) { | 273 MAYBE_DataDrivenHeuristics(20)) { |
| 273 const base::FilePath::CharType kFileNamePattern[] = | 274 const base::FilePath::CharType kFileNamePattern[] = |
| 274 FILE_PATH_LITERAL("20_*.html"); | 275 FILE_PATH_LITERAL("20_*.html"); |
| 275 RunDataDrivenTest(GetInputDirectory(kTestName), | 276 RunDataDrivenTest(GetInputDirectory(kTestName), |
| 276 GetOutputDirectory(kTestName), | 277 GetOutputDirectory(kTestName), |
| 277 kFileNamePattern); | 278 kFileNamePattern); |
| 278 } | 279 } |
| 279 | 280 |
| 280 } // namespace autofill | 281 } // namespace autofill |
| OLD | NEW |