Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Unified Diff: components/history/core/test/test_scored_history_match_client.cc

Issue 903493002: Componentize ScoredHistoryMatch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/history/core/test/test_scored_history_match_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « components/history/core/test/test_scored_history_match_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698