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

Side by Side Diff: components/search_engines/testing_search_terms_data.h

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_SEARCH_ENGINES_TESTING_SEARCH_TERMS_DATA_H_ 5 #ifndef COMPONENTS_SEARCH_ENGINES_TESTING_SEARCH_TERMS_DATA_H_
6 #define COMPONENTS_SEARCH_ENGINES_TESTING_SEARCH_TERMS_DATA_H_ 6 #define COMPONENTS_SEARCH_ENGINES_TESTING_SEARCH_TERMS_DATA_H_
7 7
8 #include "components/search_engines/search_terms_data.h" 8 #include "components/search_engines/search_terms_data.h"
9 9
10 class TestingSearchTermsData : public SearchTermsData { 10 class TestingSearchTermsData : public SearchTermsData {
11 public: 11 public:
12 explicit TestingSearchTermsData(const std::string& google_base_url); 12 explicit TestingSearchTermsData(const std::string& google_base_url);
13 virtual ~TestingSearchTermsData(); 13 virtual ~TestingSearchTermsData();
14 14
15 virtual std::string GoogleBaseURLValue() const OVERRIDE; 15 virtual std::string GoogleBaseURLValue() const override;
16 virtual base::string16 GetRlzParameterValue( 16 virtual base::string16 GetRlzParameterValue(
17 bool from_app_list) const OVERRIDE; 17 bool from_app_list) const override;
18 virtual std::string GetSearchClient() const OVERRIDE; 18 virtual std::string GetSearchClient() const override;
19 virtual std::string GoogleImageSearchSource() const OVERRIDE; 19 virtual std::string GoogleImageSearchSource() const override;
20 virtual bool EnableAnswersInSuggest() const OVERRIDE; 20 virtual bool EnableAnswersInSuggest() const override;
21 virtual bool IsShowingSearchTermsOnSearchResultsPages() const OVERRIDE; 21 virtual bool IsShowingSearchTermsOnSearchResultsPages() const override;
22 virtual int OmniboxStartMargin() const OVERRIDE; 22 virtual int OmniboxStartMargin() const override;
23 23
24 void set_google_base_url(const std::string& google_base_url) { 24 void set_google_base_url(const std::string& google_base_url) {
25 google_base_url_ = google_base_url; 25 google_base_url_ = google_base_url;
26 } 26 }
27 void set_search_client(const std::string& search_client) { 27 void set_search_client(const std::string& search_client) {
28 search_client_ = search_client; 28 search_client_ = search_client;
29 } 29 }
30 void set_enable_answers_in_suggest(bool enable_answers_in_suggest) { 30 void set_enable_answers_in_suggest(bool enable_answers_in_suggest) {
31 enable_answers_in_suggest_ = enable_answers_in_suggest; 31 enable_answers_in_suggest_ = enable_answers_in_suggest;
32 } 32 }
33 void set_is_showing_search_terms_on_search_results_pages(bool value) { 33 void set_is_showing_search_terms_on_search_results_pages(bool value) {
34 is_showing_search_terms_on_search_results_pages_ = value; 34 is_showing_search_terms_on_search_results_pages_ = value;
35 } 35 }
36 void set_omnibox_start_margin(int omnibox_start_margin) { 36 void set_omnibox_start_margin(int omnibox_start_margin) {
37 omnibox_start_margin_ = omnibox_start_margin; 37 omnibox_start_margin_ = omnibox_start_margin;
38 } 38 }
39 39
40 private: 40 private:
41 std::string google_base_url_; 41 std::string google_base_url_;
42 std::string search_client_; 42 std::string search_client_;
43 bool enable_answers_in_suggest_; 43 bool enable_answers_in_suggest_;
44 bool is_showing_search_terms_on_search_results_pages_; 44 bool is_showing_search_terms_on_search_results_pages_;
45 int omnibox_start_margin_; 45 int omnibox_start_margin_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(TestingSearchTermsData); 47 DISALLOW_COPY_AND_ASSIGN(TestingSearchTermsData);
48 }; 48 };
49 49
50 #endif // COMPONENTS_SEARCH_ENGINES_TESTING_SEARCH_TERMS_DATA_H_ 50 #endif // COMPONENTS_SEARCH_ENGINES_TESTING_SEARCH_TERMS_DATA_H_
OLDNEW
« no previous file with comments | « components/search_engines/template_url_service_unittest.cc ('k') | components/search_provider_logos/logo_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698