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/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/autofill/autofill_manager.h" | 10 #include "chrome/browser/autofill/autofill_manager.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 forms_string += " | " + UTF16ToUTF8((*field_iter)->name); | 80 forms_string += " | " + UTF16ToUTF8((*field_iter)->name); |
81 forms_string += " | " + UTF16ToUTF8((*field_iter)->label); | 81 forms_string += " | " + UTF16ToUTF8((*field_iter)->label); |
82 forms_string += " | " + UTF16ToUTF8((*field_iter)->value); | 82 forms_string += " | " + UTF16ToUTF8((*field_iter)->value); |
83 forms_string += "\n"; | 83 forms_string += "\n"; |
84 } | 84 } |
85 } | 85 } |
86 return forms_string; | 86 return forms_string; |
87 } | 87 } |
88 | 88 |
89 // Heuristics tests timeout on Windows. See http://crbug.com/85276 | 89 // Heuristics tests timeout on Windows. See http://crbug.com/85276 |
90 // Also on ChromeOS. See crbug.com/173621 | 90 // Also on ChromeOS/Aura. See crbug.com/173621 |
91 #if defined(OS_WIN) || defined(OS_CHROMEOS) | 91 #if defined(OS_WIN) || defined(USE_AURA) |
92 #define MAYBE_DataDrivenHeuristics(n) DISABLED_DataDrivenHeuristics##n | 92 #define MAYBE_DataDrivenHeuristics(n) DISABLED_DataDrivenHeuristics##n |
93 #else | 93 #else |
94 #define MAYBE_DataDrivenHeuristics(n) DataDrivenHeuristics##n | 94 #define MAYBE_DataDrivenHeuristics(n) DataDrivenHeuristics##n |
95 #endif | 95 #endif |
96 IN_PROC_BROWSER_TEST_F(FormStructureBrowserTest, DataDrivenHeuristics00) { | 96 IN_PROC_BROWSER_TEST_F(FormStructureBrowserTest, DataDrivenHeuristics00) { |
97 const base::FilePath::CharType kFileNamePattern[] = | 97 const base::FilePath::CharType kFileNamePattern[] = |
98 FILE_PATH_LITERAL("00_*.html"); | 98 FILE_PATH_LITERAL("00_*.html"); |
99 RunDataDrivenTest(GetInputDirectory(kTestName), | 99 RunDataDrivenTest(GetInputDirectory(kTestName), |
100 GetOutputDirectory(kTestName), | 100 GetOutputDirectory(kTestName), |
101 kFileNamePattern); | 101 kFileNamePattern); |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 } | 254 } |
255 | 255 |
256 IN_PROC_BROWSER_TEST_F(FormStructureBrowserTest, | 256 IN_PROC_BROWSER_TEST_F(FormStructureBrowserTest, |
257 MAYBE_DataDrivenHeuristics(20)) { | 257 MAYBE_DataDrivenHeuristics(20)) { |
258 const base::FilePath::CharType kFileNamePattern[] = | 258 const base::FilePath::CharType kFileNamePattern[] = |
259 FILE_PATH_LITERAL("20_*.html"); | 259 FILE_PATH_LITERAL("20_*.html"); |
260 RunDataDrivenTest(GetInputDirectory(kTestName), | 260 RunDataDrivenTest(GetInputDirectory(kTestName), |
261 GetOutputDirectory(kTestName), | 261 GetOutputDirectory(kTestName), |
262 kFileNamePattern); | 262 kFileNamePattern); |
263 } | 263 } |
OLD | NEW |