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

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

Issue 934083003: Cleanup HistoryService and HistoryBackend interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@android-backend-provider
Patch Set: 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: chrome/browser/history/history_backend_unittest.cc
diff --git a/chrome/browser/history/history_backend_unittest.cc b/chrome/browser/history/history_backend_unittest.cc
index 9eeca2ad64038607862740afc2726f36f49ce2b9..8bc2ecda9bec96a5760f1ea412371a0787c508d0 100644
--- a/chrome/browser/history/history_backend_unittest.cc
+++ b/chrome/browser/history/history_backend_unittest.cc
@@ -250,8 +250,8 @@ class HistoryBackendTestBase : public testing::Test {
if (!base::CreateNewTempDirectory(FILE_PATH_LITERAL("BackendTest"),
&test_dir_))
return;
- backend_ = new HistoryBackend(
- test_dir_, new HistoryBackendTestDelegate(this), &history_client_);
+ backend_ = new HistoryBackend(new HistoryBackendTestDelegate(this),
+ &history_client_);
backend_->Init(std::string(), false,
TestHistoryDatabaseParamsForPath(test_dir_));
}
@@ -1564,8 +1564,8 @@ TEST_F(HistoryBackendTest, MigrationVisitSource) {
base::FilePath new_history_file = new_history_path.Append(kHistoryFilename);
ASSERT_TRUE(base::CopyFile(old_history_path, new_history_file));
- backend_ = new HistoryBackend(
- new_history_path, new HistoryBackendTestDelegate(this), &history_client_);
+ backend_ = new HistoryBackend(new HistoryBackendTestDelegate(this),
+ &history_client_);
backend_->Init(std::string(), false,
TestHistoryDatabaseParamsForPath(new_history_path));
backend_->Closing();
@@ -2817,8 +2817,8 @@ TEST_F(HistoryBackendTest, MigrationVisitDuration) {
base::FilePath new_history_file = new_history_path.Append(kHistoryFilename);
ASSERT_TRUE(base::CopyFile(old_history, new_history_file));
- backend_ = new HistoryBackend(
- new_history_path, new HistoryBackendTestDelegate(this), &history_client_);
+ backend_ = new HistoryBackend(new HistoryBackendTestDelegate(this),
+ &history_client_);
backend_->Init(std::string(), false,
TestHistoryDatabaseParamsForPath(new_history_path));
backend_->Closing();

Powered by Google App Engine
This is Rietveld 408576698