Index: components/history/core/test/test_scored_history_match_client.cc |
diff --git a/components/history/core/test/test_scored_history_match_client.cc b/components/history/core/test/test_scored_history_match_client.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5eb34e665b30c43abc939d28201e54ee7cbf1bf5 |
--- /dev/null |
+++ b/components/history/core/test/test_scored_history_match_client.cc |
@@ -0,0 +1,49 @@ |
+// Copyright 2015 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/history/core/test/test_scored_history_match_client.h" |
+ |
+#include "base/strings/utf_string_conversions.h" |
+#include "url/gurl.h" |
+ |
+namespace history { |
+ |
+TestScoredHistoryMatchClient::TestScoredHistoryMatchClient() { |
+} |
+ |
+TestScoredHistoryMatchClient::~TestScoredHistoryMatchClient() { |
+} |
+ |
+bool TestScoredHistoryMatchClient::IsBoomarked(const GURL& url) const { |
+ return false; |
+} |
+ |
+int TestScoredHistoryMatchClient::BookmarkValue() const { |
+ return 1; |
+} |
+ |
+bool TestScoredHistoryMatchClient::AllowTldMatches() const { |
+ return false; |
+} |
+ |
+bool TestScoredHistoryMatchClient::AllowSchemeMatches() const { |
+ return false; |
+} |
+ |
+bool TestScoredHistoryMatchClient::CanInlineAutocompleteMatch( |
+ const GURL& url, |
+ const base::string16& term, |
+ bool* innermost_match) const { |
+ return false; |
+} |
+ |
+base::string16 TestScoredHistoryMatchClient::CleanUpUrlAndTitleForMatching( |
+ const GURL& url, |
+ const std::string& languages, |
+ base::OffsetAdjuster::Adjustments* adjustments, |
+ base::string16* title) const { |
+ return base::UTF8ToUTF16(url.spec()); |
+} |
+ |
+} // namespace history |