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

Unified Diff: components/history/core/browser/scored_history_match_unittest.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
Index: components/history/core/browser/scored_history_match_unittest.cc
diff --git a/chrome/browser/history/scored_history_match_unittest.cc b/components/history/core/browser/scored_history_match_unittest.cc
similarity index 99%
rename from chrome/browser/history/scored_history_match_unittest.cc
rename to components/history/core/browser/scored_history_match_unittest.cc
index 4989966eda6eb271a3c5cc935a26e39dae626d98..8570ad373076870527a95699f9f3308db004cf55 100644
--- a/chrome/browser/history/scored_history_match_unittest.cc
+++ b/components/history/core/browser/scored_history_match_unittest.cc
@@ -2,12 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "components/history/core/browser/scored_history_match.h"
+
#include <algorithm>
#include "base/auto_reset.h"
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
-#include "chrome/browser/history/scored_history_match.h"
#include "components/history/core/test/history_client_fake_bookmarks.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -31,6 +32,12 @@ VisitInfoVector CreateVisitInfoVector(int num_visits,
}
class ScoredHistoryMatchTest : public testing::Test {
+ public:
+ static void SetUpTestCase() {
+ testing::Test::SetUpTestCase();
+ history::ScoredHistoryMatch::Init();
+ }
+
protected:
// Convenience function to create a URLRow with basic data for |url|, |title|,
// |visit_count|, and |typed_count|. |days_since_last_visit| gives the number
« no previous file with comments | « components/history/core/browser/scored_history_match_client.cc ('k') | components/history/core/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698