blob: ac476a0497413857d92f75a0e4cd2020c0712223 [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)
pkasting83dc1e92016-01-06 10:19:5011 : google_base_url_(google_base_url) {
hashimoto3c831812014-08-25 07:40:2312}
13
14TestingSearchTermsData::~TestingSearchTermsData() {}
15
16std::string TestingSearchTermsData::GoogleBaseURLValue() const {
17 return google_base_url_;
18}
19
20base::string16 TestingSearchTermsData::GetRlzParameterValue(
21 bool from_app_list) const {
22 return base::ASCIIToUTF16(
23 from_app_list ? "rlz_parameter_from_app_list" : "rlz_parameter");
24}
25
26std::string TestingSearchTermsData::GetSearchClient() const {
27 return search_client_;
28}
29
30std::string TestingSearchTermsData::GoogleImageSearchSource() const {
31 return "google_image_search_source";
32}
Denis Yaroshevskiy361a59322018-02-12 20:16:1233
34size_t TestingSearchTermsData::EstimateMemoryUsage() const {
35 return 0;
36}