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

Unified Diff: chrome/browser/history/history_database_unittest.cc

Issue 849323002: Componentize HistoryDatabase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android compilation Created 5 years, 11 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 | « chrome/browser/history/history_database.cc ('k') | chrome/browser/history/history_querying_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_database_unittest.cc
diff --git a/chrome/browser/history/history_database_unittest.cc b/chrome/browser/history/history_database_unittest.cc
index 224714f4eab7a5109940b2f3bee7f2b81f28b551..886d1e9c72b712f1bf04f6b079ebf75e9bb6ca1b 100644
--- a/chrome/browser/history/history_database_unittest.cc
+++ b/chrome/browser/history/history_database_unittest.cc
@@ -2,13 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/history/history_database.h"
+#include "components/history/core/browser/history_database.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/path_service.h"
#include "chrome/common/chrome_paths.h"
+#include "components/history/core/test/test_history_database.h"
#include "sql/init_status.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -33,7 +34,7 @@ TEST(HistoryDatabaseTest, DropBookmarks) {
// Load the DB twice. The first time it should migrate. Make sure that the
// migration leaves it in a state fit to load again later.
for (int i = 0; i < 2; ++i) {
- HistoryDatabase history_db;
+ TestHistoryDatabase history_db;
ASSERT_EQ(sql::INIT_OK, history_db.Init(db_file));
HistoryDatabase::URLEnumerator url_enumerator;
ASSERT_TRUE(history_db.InitURLEnumeratorForEverything(&url_enumerator));
« no previous file with comments | « chrome/browser/history/history_database.cc ('k') | chrome/browser/history/history_querying_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698