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

Side by Side Diff: chrome/browser/autocomplete/search_provider_unittest.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "components/omnibox/search_provider.h" 5 #include "components/omnibox/search_provider.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 SearchProviderTest() 150 SearchProviderTest()
151 : default_t_url_(NULL), 151 : default_t_url_(NULL),
152 term1_(ASCIIToUTF16("term1")), 152 term1_(ASCIIToUTF16("term1")),
153 keyword_t_url_(NULL), 153 keyword_t_url_(NULL),
154 keyword_term_(ASCIIToUTF16("keyword")), 154 keyword_term_(ASCIIToUTF16("keyword")),
155 run_loop_(NULL) { 155 run_loop_(NULL) {
156 ResetFieldTrialList(); 156 ResetFieldTrialList();
157 } 157 }
158 158
159 // See description above class for what this registers. 159 // See description above class for what this registers.
160 virtual void SetUp() override; 160 void SetUp() override;
161 virtual void TearDown() override; 161 void TearDown() override;
162 162
163 void RunTest(TestData* cases, int num_cases, bool prefer_keyword); 163 void RunTest(TestData* cases, int num_cases, bool prefer_keyword);
164 164
165 protected: 165 protected:
166 // Needed for AutocompleteFieldTrial::ActivateStaticTrials(); 166 // Needed for AutocompleteFieldTrial::ActivateStaticTrials();
167 scoped_ptr<base::FieldTrialList> field_trial_list_; 167 scoped_ptr<base::FieldTrialList> field_trial_list_;
168 168
169 // Default values used for testing. 169 // Default values used for testing.
170 static const std::string kNotApplicable; 170 static const std::string kNotApplicable;
171 static const ExpectedMatch kEmptyExpectedMatch; 171 static const ExpectedMatch kEmptyExpectedMatch;
(...skipping 3276 matching lines...) Expand 10 before | Expand all | Expand 10 after
3448 EXPECT_EQ(base::ASCIIToUTF16("42"), matches[0].answer_type); 3448 EXPECT_EQ(base::ASCIIToUTF16("42"), matches[0].answer_type);
3449 EXPECT_TRUE(matches[1].answer_contents.empty()); 3449 EXPECT_TRUE(matches[1].answer_contents.empty());
3450 EXPECT_TRUE(matches[1].answer_type.empty()); 3450 EXPECT_TRUE(matches[1].answer_type.empty());
3451 EXPECT_TRUE(matches[2].answer_contents.empty()); 3451 EXPECT_TRUE(matches[2].answer_contents.empty());
3452 EXPECT_TRUE(matches[2].answer_type.empty()); 3452 EXPECT_TRUE(matches[2].answer_type.empty());
3453 EXPECT_TRUE(matches[3].answer_contents.empty()); 3453 EXPECT_TRUE(matches[3].answer_contents.empty());
3454 EXPECT_TRUE(matches[3].answer_type.empty()); 3454 EXPECT_TRUE(matches[3].answer_type.empty());
3455 EXPECT_TRUE(matches[4].answer_contents.empty()); 3455 EXPECT_TRUE(matches[4].answer_contents.empty());
3456 EXPECT_TRUE(matches[4].answer_type.empty()); 3456 EXPECT_TRUE(matches[4].answer_type.empty());
3457 } 3457 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698