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

Side by Side Diff: chrome/browser/autocomplete/builtin_provider_unittest.cc

Issue 625113002: replace OVERRIDE and FINAL with override and final in chrome/browser/[a-i]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix newly added OVERRIDEs Created 6 years, 2 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
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 "chrome/browser/autocomplete/builtin_provider.h" 5 #include "chrome/browser/autocomplete/builtin_provider.h"
6 6
7 #include "base/format_macros.h" 7 #include "base/format_macros.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" 10 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h"
(...skipping 11 matching lines...) Expand all
22 protected: 22 protected:
23 struct TestData { 23 struct TestData {
24 const base::string16 input; 24 const base::string16 input;
25 const size_t num_results; 25 const size_t num_results;
26 const GURL output[3]; 26 const GURL output[3];
27 }; 27 };
28 28
29 BuiltinProviderTest() : provider_(NULL) {} 29 BuiltinProviderTest() : provider_(NULL) {}
30 virtual ~BuiltinProviderTest() {} 30 virtual ~BuiltinProviderTest() {}
31 31
32 virtual void SetUp() OVERRIDE { provider_ = new BuiltinProvider(); } 32 virtual void SetUp() override { provider_ = new BuiltinProvider(); }
33 virtual void TearDown() OVERRIDE { provider_ = NULL; } 33 virtual void TearDown() override { provider_ = NULL; }
34 34
35 void RunTest(const TestData cases[], size_t num_cases) { 35 void RunTest(const TestData cases[], size_t num_cases) {
36 ACMatches matches; 36 ACMatches matches;
37 for (size_t i = 0; i < num_cases; ++i) { 37 for (size_t i = 0; i < num_cases; ++i) {
38 SCOPED_TRACE(base::StringPrintf( 38 SCOPED_TRACE(base::StringPrintf(
39 "case %" PRIuS ": %s", i, base::UTF16ToUTF8(cases[i].input).c_str())); 39 "case %" PRIuS ": %s", i, base::UTF16ToUTF8(cases[i].input).c_str()));
40 const AutocompleteInput input(cases[i].input, base::string16::npos, 40 const AutocompleteInput input(cases[i].input, base::string16::npos,
41 std::string(), GURL(), 41 std::string(), GURL(),
42 metrics::OmniboxEventProto::INVALID_SPEC, 42 metrics::OmniboxEventProto::INVALID_SPEC,
43 true, false, true, true, 43 true, false, true, true,
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 {kSettings + kPage1.substr(0, 1), 2, {kURL1, kURL2}}, 306 {kSettings + kPage1.substr(0, 1), 2, {kURL1, kURL2}},
307 {kSettings + kPage1.substr(0, 2), 1, {kURL1}}, 307 {kSettings + kPage1.substr(0, 2), 1, {kURL1}},
308 {kSettings + kPage1.substr(0, kPage1.length() - 1), 1, {kURL1}}, 308 {kSettings + kPage1.substr(0, kPage1.length() - 1), 1, {kURL1}},
309 {kSettings + kPage1, 1, {kURL1}}, 309 {kSettings + kPage1, 1, {kURL1}},
310 {kSettings + kPage2, 1, {kURL2}}, 310 {kSettings + kPage2, 1, {kURL2}},
311 }; 311 };
312 312
313 RunTest(settings_subpage_cases, arraysize(settings_subpage_cases)); 313 RunTest(settings_subpage_cases, arraysize(settings_subpage_cases));
314 } 314 }
315 #endif 315 #endif
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/builtin_provider.h ('k') | chrome/browser/autocomplete/chrome_autocomplete_provider_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698