summaryrefslogtreecommitdiffstats
path: root/components/search_engines/testing_search_terms_data.cc
blob: 9fed5cfb0ed17680ed5f941fc8fb49b1c327f5a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// 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) {
}

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";
}