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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 forms_string += (*field_iter)->Type().ToString(); | 94 forms_string += (*field_iter)->Type().ToString(); |
95 forms_string += " | " + base::UTF16ToUTF8((*field_iter)->name); | 95 forms_string += " | " + base::UTF16ToUTF8((*field_iter)->name); |
96 forms_string += " | " + base::UTF16ToUTF8((*field_iter)->label); | 96 forms_string += " | " + base::UTF16ToUTF8((*field_iter)->label); |
97 forms_string += " | " + base::UTF16ToUTF8((*field_iter)->value); | 97 forms_string += " | " + base::UTF16ToUTF8((*field_iter)->value); |
98 forms_string += "\n"; | 98 forms_string += "\n"; |
99 } | 99 } |
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 time out on Windows (http://crbug.com/85276) and Chrome OS |
105 #if defined(OS_WIN) | 105 // (http://crbug.com/423791). |
| 106 #if defined(OS_WIN) || defined(OS_CHROMEOS) |
106 #define MAYBE_DataDrivenHeuristics(n) DISABLED_DataDrivenHeuristics##n | 107 #define MAYBE_DataDrivenHeuristics(n) DISABLED_DataDrivenHeuristics##n |
107 #else | 108 #else |
108 #define MAYBE_DataDrivenHeuristics(n) DataDrivenHeuristics##n | 109 #define MAYBE_DataDrivenHeuristics(n) DataDrivenHeuristics##n |
109 #endif | 110 #endif |
110 IN_PROC_BROWSER_TEST_F(FormStructureBrowserTest, DataDrivenHeuristics00) { | 111 IN_PROC_BROWSER_TEST_F(FormStructureBrowserTest, DataDrivenHeuristics00) { |
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); |
(...skipping 155 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 |