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

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

Issue 697953002: ObserverList::HasObserver now takes a const pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile errors (ChromeOS unit tests). 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"
(...skipping 24 matching lines...) Expand all
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
37 // search_terms_replacement_key. 37 // search_terms_replacement_key.
38 void SetUserSelectedDefaultSearchProvider(const std::string& base_url); 38 void SetUserSelectedDefaultSearchProvider(const std::string& base_url);
39 39
40 // Simulates a Google Base URL change as would happen in event of 40 // Simulates a Google Base URL change as would happen in event of
41 // search-domain-check. Note that the GoogleURLTrackerFactory is disabled for 41 // search-domain-check. Note that the GoogleURLTrackerFactory is disabled for
42 // tests, so this is required. 42 // tests, so this is required.
43 void NotifyGoogleBaseURLUpdate(const std::string& new_google_base_url); 43 void NotifyGoogleBaseURLUpdate(const std::string& new_google_base_url);
44 44
45 bool IsInstantServiceObserver(InstantServiceObserver* observer); 45 bool IsInstantServiceObserver(const InstantServiceObserver* observer) const;
46 46
47 InstantService* instant_service_; 47 InstantService* instant_service_;
48 TemplateURLService* template_url_service_; 48 TemplateURLService* template_url_service_;
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
« no previous file with comments | « chrome/browser/extensions/api/dial/dial_service.cc ('k') | chrome/browser/search/instant_unittest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698