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

Side by Side Diff: chrome/browser/search/instant_unittest_base.h

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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_SEARCH_INSTANT_UNITTEST_BASE_H_ 5 #ifndef CHROME_BROWSER_SEARCH_INSTANT_UNITTEST_BASE_H_
6 #define CHROME_BROWSER_SEARCH_INSTANT_UNITTEST_BASE_H_ 6 #define CHROME_BROWSER_SEARCH_INSTANT_UNITTEST_BASE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
11 #include "chrome/browser/search/instant_service.h" 11 #include "chrome/browser/search/instant_service.h"
12 #include "chrome/test/base/browser_with_test_window_test.h" 12 #include "chrome/test/base/browser_with_test_window_test.h"
13 #include "components/search_engines/template_url_service.h" 13 #include "components/search_engines/template_url_service.h"
14 14
15 class InstantServiceObserver; 15 class InstantServiceObserver;
16 16
17 // This class provides an extension on top of BrowserWithTestWindowTest, and 17 // This class provides an extension on top of BrowserWithTestWindowTest, and
18 // adds some utility methods which can be useful for various unit tests for 18 // adds some utility methods which can be useful for various unit tests for
19 // Embedded Search / Instant implementation classes. 19 // Embedded Search / Instant implementation classes.
20 class InstantUnitTestBase : public BrowserWithTestWindowTest { 20 class InstantUnitTestBase : public BrowserWithTestWindowTest {
21 protected: 21 protected:
22 InstantUnitTestBase(); 22 InstantUnitTestBase();
23 virtual ~InstantUnitTestBase(); 23 ~InstantUnitTestBase() override;
24 24
25 virtual void SetUp() override; 25 void SetUp() override;
26 virtual void TearDown() override; 26 void TearDown() override;
27 27
28 #if !defined(OS_IOS) && !defined(OS_ANDROID) 28 #if !defined(OS_IOS) && !defined(OS_ANDROID)
29 // Query extraction is always enabled on Android and iOS. 29 // Query extraction is always enabled on Android and iOS.
30 void SetUpWithoutQueryExtraction(); 30 void SetUpWithoutQueryExtraction();
31 #endif 31 #endif
32 32
33 // Adds and sets the default search provider using the base_url. 33 // Adds and sets the default search provider using the base_url.
34 // The base_url should have the http[s]:// prefix and a trailing / after the 34 // The base_url should have the http[s]:// prefix and a trailing / after the
35 // TLD. 35 // TLD.
36 // It will always use an instant-enabled configuration using a 36 // It will always use an instant-enabled configuration using a
(...skipping 12 matching lines...) Expand all
49 scoped_ptr<base::FieldTrialList> field_trial_list_; 49 scoped_ptr<base::FieldTrialList> field_trial_list_;
50 50
51 private: 51 private:
52 // BrowserWithTestWindowTest override: 52 // BrowserWithTestWindowTest override:
53 TestingProfile* CreateProfile() override; 53 TestingProfile* CreateProfile() override;
54 54
55 void SetUpHelper(); 55 void SetUpHelper();
56 }; 56 };
57 57
58 #endif // CHROME_BROWSER_SEARCH_INSTANT_UNITTEST_BASE_H_ 58 #endif // CHROME_BROWSER_SEARCH_INSTANT_UNITTEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698