blob: f3418c93dac2dd7bf8dd64ca234883716ecdc951 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/search_engines/testing_search_terms_data.h"
#include "base/strings/utf_string_conversions.h"
TestingSearchTermsData::TestingSearchTermsData(
const std::string& google_base_url)
: google_base_url_(google_base_url),
enable_answers_in_suggest_(false),
is_showing_search_terms_on_search_results_pages_(false) {
}
TestingSearchTermsData::~TestingSearchTermsData() {}
std::string TestingSearchTermsData::GoogleBaseURLValue() const {
return google_base_url_;
}
base::string16 TestingSearchTermsData::GetRlzParameterValue(
bool from_app_list) const {
return base::ASCIIToUTF16(
from_app_list ? "rlz_parameter_from_app_list" : "rlz_parameter");
}
std::string TestingSearchTermsData::GetSearchClient() const {
return search_client_;
}
std::string TestingSearchTermsData::GoogleImageSearchSource() const {
return "google_image_search_source";
}
bool TestingSearchTermsData::EnableAnswersInSuggest() const {
return enable_answers_in_suggest_;
}
bool TestingSearchTermsData::IsShowingSearchTermsOnSearchResultsPages() const {
return is_showing_search_terms_on_search_results_pages_;
}
int TestingSearchTermsData::OmniboxStartMargin() const {
return omnibox_start_margin_;
}