blob: b4e98240ad1ceafcd5e961b5da1f6a13da194226 [file] [log] [blame]
hashimoto3c831812014-08-25 07:40:231// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "components/search_engines/testing_search_terms_data.h"
6
7#include "base/strings/utf_string_conversions.h"
8
9TestingSearchTermsData::TestingSearchTermsData(
10 const std::string& google_base_url)
11 : google_base_url_(google_base_url),
hashimoto3c831812014-08-25 07:40:2312 is_showing_search_terms_on_search_results_pages_(false) {
13}
14
15TestingSearchTermsData::~TestingSearchTermsData() {}
16
17std::string TestingSearchTermsData::GoogleBaseURLValue() const {
18 return google_base_url_;
19}
20
21base::string16 TestingSearchTermsData::GetRlzParameterValue(
22 bool from_app_list) const {
23 return base::ASCIIToUTF16(
24 from_app_list ? "rlz_parameter_from_app_list" : "rlz_parameter");
25}
26
27std::string TestingSearchTermsData::GetSearchClient() const {
28 return search_client_;
29}
30
31std::string TestingSearchTermsData::GoogleImageSearchSource() const {
32 return "google_image_search_source";
33}
34
hashimoto3c831812014-08-25 07:40:2335bool TestingSearchTermsData::IsShowingSearchTermsOnSearchResultsPages() const {
36 return is_showing_search_terms_on_search_results_pages_;
37}
38
39int TestingSearchTermsData::OmniboxStartMargin() const {
40 return omnibox_start_margin_;
41}