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" |
11 #include "chrome/browser/autofill/data_driven_test.h" | 11 #include "chrome/browser/autofill/data_driven_test.h" |
12 #include "chrome/browser/autofill/form_structure.h" | 12 #include "chrome/browser/autofill/form_structure.h" |
13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
14 #include "chrome/browser/ui/browser_tabstrip.h" | 14 #include "chrome/browser/ui/browser_tabstrip.h" |
15 #include "chrome/browser/ui/tab_contents/tab_contents.h" | |
16 #include "chrome/test/base/in_process_browser_test.h" | 15 #include "chrome/test/base/in_process_browser_test.h" |
17 #include "chrome/test/base/ui_test_utils.h" | 16 #include "chrome/test/base/ui_test_utils.h" |
18 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
19 | 18 |
20 namespace { | 19 namespace { |
21 | 20 |
22 const FilePath::CharType kTestName[] = FILE_PATH_LITERAL("heuristics"); | 21 const FilePath::CharType kTestName[] = FILE_PATH_LITERAL("heuristics"); |
23 | 22 |
24 // Convert the |html| snippet to a data URI. | 23 // Convert the |html| snippet to a data URI. |
25 GURL HTMLToDataURI(const std::string& html) { | 24 GURL HTMLToDataURI(const std::string& html) { |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 kFileNamePattern); | 236 kFileNamePattern); |
238 } | 237 } |
239 | 238 |
240 IN_PROC_BROWSER_TEST_F(FormStructureBrowserTest, | 239 IN_PROC_BROWSER_TEST_F(FormStructureBrowserTest, |
241 MAYBE_DataDrivenHeuristics(20)) { | 240 MAYBE_DataDrivenHeuristics(20)) { |
242 const FilePath::CharType kFileNamePattern[] = FILE_PATH_LITERAL("20_*.html"); | 241 const FilePath::CharType kFileNamePattern[] = FILE_PATH_LITERAL("20_*.html"); |
243 RunDataDrivenTest(GetInputDirectory(kTestName), | 242 RunDataDrivenTest(GetInputDirectory(kTestName), |
244 GetOutputDirectory(kTestName), | 243 GetOutputDirectory(kTestName), |
245 kFileNamePattern); | 244 kFileNamePattern); |
246 } | 245 } |
OLD | NEW |