1 // Copyright 2014 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/search_engines/testing_search_terms_data.h"
7 #include "base/strings/utf_string_conversions.h"
9 TestingSearchTermsData::TestingSearchTermsData(
10 const std::string& google_base_url)
11 : google_base_url_(google_base_url) {
14 TestingSearchTermsData::~TestingSearchTermsData() {}
16 std::string TestingSearchTermsData::GoogleBaseURLValue() const {
17 return google_base_url_;
20 std::u16string TestingSearchTermsData::GetRlzParameterValue(
21 bool from_app_list) const {
22 return base::ASCIIToUTF16(
23 from_app_list ? "rlz_parameter_from_app_list" : "rlz_parameter");
26 std::string TestingSearchTermsData::GetSearchClient() const {
27 return search_client_;
30 std::string TestingSearchTermsData::GetSuggestClient(
31 RequestSource request_source) const {
32 return suggest_client_;
35 std::string TestingSearchTermsData::GoogleImageSearchSource() const {
36 return "google_image_search_source";
39 size_t TestingSearchTermsData::EstimateMemoryUsage() const {