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

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

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
Index: components/history/core/test/test_scored_history_match_client.h
diff --git a/components/history/core/test/test_scored_history_match_client.h b/components/history/core/test/test_scored_history_match_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..1411c92624bd67f6cab9d3fa798380e4e8c78216
--- /dev/null
+++ b/components/history/core/test/test_scored_history_match_client.h
@@ -0,0 +1,37 @@
+// 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.
+
+#ifndef COMPONENTS_HISTORY_CORE_TEST_TEST_SCORED_HISTORY_MATCH_CLIENT_H_
+#define COMPONENTS_HISTORY_CORE_TEST_TEST_SCORED_HISTORY_MATCH_CLIENT_H_
+
+#include "components/history/core/browser/scored_history_match_client.h"
+
+namespace history {
+
+class TestScoredHistoryMatchClient : public ScoredHistoryMatchClient {
+ public:
+ TestScoredHistoryMatchClient();
+ ~TestScoredHistoryMatchClient() override;
+
+ private:
+ // ScoredHistoryMatchClient implementation.
+ bool IsBoomarked(const GURL& url) const override;
+ int BookmarkValue() const override;
+ bool AllowTldMatches() const override;
+ bool AllowSchemeMatches() const override;
+ bool CanInlineAutocompleteMatch(const GURL& url,
+ const base::string16& term,
+ bool* innermost_match) const override;
+ base::string16 CleanUpUrlAndTitleForMatching(
+ const GURL& url,
+ const std::string& languages,
+ base::OffsetAdjuster::Adjustments* adjustments,
+ base::string16* title) const override;
+
+ DISALLOW_COPY_AND_ASSIGN(TestScoredHistoryMatchClient);
+};
+
+} // namespace history
+
+#endif // COMPONENTS_HISTORY_CORE_TEST_TEST_SCORED_HISTORY_MATCH_CLIENT_H_
« no previous file with comments | « components/history/core/test/BUILD.gn ('k') | components/history/core/test/test_scored_history_match_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698