Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1047)

Side by Side Diff: chrome/browser/autofill/form_structure_browsertest.cc

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/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"
11 #include "chrome/browser/autofill/data_driven_test.h"
12 #include "chrome/browser/autofill/form_structure.h"
13 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
14 #include "chrome/browser/ui/tabs/tab_strip_model.h" 11 #include "chrome/browser/ui/tabs/tab_strip_model.h"
15 #include "chrome/test/base/in_process_browser_test.h" 12 #include "chrome/test/base/in_process_browser_test.h"
16 #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 "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 18
19 namespace { 19 namespace {
20 20
21 const base::FilePath::CharType kTestName[] = FILE_PATH_LITERAL("heuristics"); 21 const base::FilePath::CharType kTestName[] = FILE_PATH_LITERAL("heuristics");
22 22
23 // Convert the |html| snippet to a data URI. 23 // Convert the |html| snippet to a data URI.
24 GURL HTMLToDataURI(const std::string& html) { 24 GURL HTMLToDataURI(const std::string& html) {
25 return GURL(std::string("data:text/html;charset=utf-8,") + html); 25 return GURL(std::string("data:text/html;charset=utf-8,") + html);
26 } 26 }
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/form_structure.cc ('k') | chrome/browser/autofill/form_structure_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698