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

Unified Diff: chrome/browser/history/history_querying_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_unittest.cc ('k') | chrome/browser/history/history_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_querying_unittest.cc
diff --git a/chrome/browser/history/history_querying_unittest.cc b/chrome/browser/history/history_querying_unittest.cc
index dca1a832c594228fd34f3da4ceb2d5bbc5cef741..3cdf1e9315242b2ab09f4fa87b42f4f1d4c768fd 100644
--- a/chrome/browser/history/history_querying_unittest.cc
+++ b/chrome/browser/history/history_querying_unittest.cc
@@ -12,6 +12,8 @@
#include "base/strings/utf_string_conversions.h"
#include "base/task/cancelable_task_tracker.h"
#include "chrome/browser/history/history_service.h"
+#include "components/history/core/browser/history_database_params.h"
+#include "components/history/core/test/test_history_database.h"
#include "testing/gtest/include/gtest/gtest.h"
using base::Time;
@@ -165,7 +167,7 @@ class HistoryQueryTest : public testing::Test {
ASSERT_TRUE(base::CreateDirectory(history_dir_));
history_.reset(new HistoryService);
- if (!history_->Init(history_dir_)) {
+ if (!history_->Init(TestHistoryDatabaseParamsForPath(history_dir_))) {
history_.reset(); // Tests should notice this NULL ptr & fail.
return;
}
« no previous file with comments | « chrome/browser/history/history_database_unittest.cc ('k') | chrome/browser/history/history_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698