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

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

Issue 684613002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
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/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 27 matching lines...) Expand all
38 38
39 } // namespace 39 } // namespace
40 40
41 // A data-driven test for verifying Autofill heuristics. Each input is an HTML 41 // A data-driven test for verifying Autofill heuristics. Each input is an HTML
42 // file that contains one or more forms. The corresponding output file lists the 42 // file that contains one or more forms. The corresponding output file lists the
43 // heuristically detected type for eachfield. 43 // heuristically detected type for eachfield.
44 class FormStructureBrowserTest : public InProcessBrowserTest, 44 class FormStructureBrowserTest : public InProcessBrowserTest,
45 public DataDrivenTest { 45 public DataDrivenTest {
46 protected: 46 protected:
47 FormStructureBrowserTest(); 47 FormStructureBrowserTest();
48 virtual ~FormStructureBrowserTest(); 48 ~FormStructureBrowserTest() override;
49 49
50 // DataDrivenTest: 50 // DataDrivenTest:
51 void GenerateResults(const std::string& input, std::string* output) override; 51 void GenerateResults(const std::string& input, std::string* output) override;
52 52
53 // Serializes the given |forms| into a string. 53 // Serializes the given |forms| into a string.
54 std::string FormStructuresToString(const std::vector<FormStructure*>& forms); 54 std::string FormStructuresToString(const std::vector<FormStructure*>& forms);
55 55
56 private: 56 private:
57 DISALLOW_COPY_AND_ASSIGN(FormStructureBrowserTest); 57 DISALLOW_COPY_AND_ASSIGN(FormStructureBrowserTest);
58 }; 58 };
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 IN_PROC_BROWSER_TEST_F(FormStructureBrowserTest, 275 IN_PROC_BROWSER_TEST_F(FormStructureBrowserTest,
276 MAYBE_DataDrivenHeuristics(21)) { 276 MAYBE_DataDrivenHeuristics(21)) {
277 const base::FilePath::CharType kFileNamePattern[] = 277 const base::FilePath::CharType kFileNamePattern[] =
278 FILE_PATH_LITERAL("21_*.html"); 278 FILE_PATH_LITERAL("21_*.html");
279 RunDataDrivenTest(GetInputDirectory(kTestName), 279 RunDataDrivenTest(GetInputDirectory(kTestName),
280 GetOutputDirectory(kTestName), 280 GetOutputDirectory(kTestName),
281 kFileNamePattern); 281 kFileNamePattern);
282 } 282 }
283 283
284 } // namespace autofill 284 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698