Upload upstream chromium 114.0.5735.31
[platform/framework/web/chromium-efl.git] / components / search_engines / testing_search_terms_data.cc
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.
4
5 #include "components/search_engines/testing_search_terms_data.h"
6
7 #include "base/strings/utf_string_conversions.h"
8
9 TestingSearchTermsData::TestingSearchTermsData(
10     const std::string& google_base_url)
11     : google_base_url_(google_base_url) {
12 }
13
14 TestingSearchTermsData::~TestingSearchTermsData() {}
15
16 std::string TestingSearchTermsData::GoogleBaseURLValue() const {
17   return google_base_url_;
18 }
19
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");
24 }
25
26 std::string TestingSearchTermsData::GetSearchClient() const {
27   return search_client_;
28 }
29
30 std::string TestingSearchTermsData::GetSuggestClient(
31     RequestSource request_source) const {
32   return suggest_client_;
33 }
34
35 std::string TestingSearchTermsData::GoogleImageSearchSource() const {
36   return "google_image_search_source";
37 }
38
39 size_t TestingSearchTermsData::EstimateMemoryUsage() const {
40   return 0;
41 }