testing_search_terms_data.cc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // 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. #include "components/search_engines/testing_search_terms_data.h"
  5. #include "base/strings/utf_string_conversions.h"
  6. TestingSearchTermsData::TestingSearchTermsData(
  7. const std::string& google_base_url)
  8. : google_base_url_(google_base_url) {
  9. }
  10. TestingSearchTermsData::~TestingSearchTermsData() {}
  11. std::string TestingSearchTermsData::GoogleBaseURLValue() const {
  12. return google_base_url_;
  13. }
  14. std::u16string TestingSearchTermsData::GetRlzParameterValue(
  15. bool from_app_list) const {
  16. return base::ASCIIToUTF16(
  17. from_app_list ? "rlz_parameter_from_app_list" : "rlz_parameter");
  18. }
  19. std::string TestingSearchTermsData::GetSearchClient() const {
  20. return search_client_;
  21. }
  22. std::string TestingSearchTermsData::GetSuggestClient(
  23. bool non_searchbox_ntp) const {
  24. return suggest_client_;
  25. }
  26. std::string TestingSearchTermsData::GoogleImageSearchSource() const {
  27. return "google_image_search_source";
  28. }
  29. size_t TestingSearchTermsData::EstimateMemoryUsage() const {
  30. return 0;
  31. }