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

Unified Diff: chrome/browser/history/android/android_cache_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
Index: chrome/browser/history/android/android_cache_database_unittest.cc
diff --git a/chrome/browser/history/android/android_cache_database_unittest.cc b/chrome/browser/history/android/android_cache_database_unittest.cc
index 7ce69b6e184ed280852ad9b85cdc47923a4a4409..d67c997a7e9b6d6c0c98cb89b67f232119bf2433 100644
--- a/chrome/browser/history/android/android_cache_database_unittest.cc
+++ b/chrome/browser/history/android/android_cache_database_unittest.cc
@@ -2,14 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/history/core/android/android_cache_database.h"
+#include "components/history/core/browser/android/android_cache_database.h"
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
#include "base/strings/utf_string_conversions.h"
-#include "chrome/browser/history/history_database.h"
#include "chrome/test/base/testing_profile.h"
-#include "components/history/core/android/android_time.h"
+#include "components/history/core/browser/android/android_time.h"
+#include "components/history/core/browser/history_database.h"
+#include "components/history/core/test/test_history_database.h"
#include "testing/gtest/include/gtest/gtest.h"
using base::Time;
@@ -19,8 +20,7 @@ namespace history {
class AndroidCacheDatabaseTest : public testing::Test {
public:
- AndroidCacheDatabaseTest() {
- }
+ AndroidCacheDatabaseTest() {}
virtual ~AndroidCacheDatabaseTest() {}
protected:
@@ -38,13 +38,13 @@ class AndroidCacheDatabaseTest : public testing::Test {
base::ScopedTempDir temp_dir_;
base::FilePath android_cache_db_name_;
- HistoryDatabase history_db_;
+ TestHistoryDatabase history_db_;
};
TEST(AndroidCacheDatabaseAttachTest, AttachDatabaseInTransactionNesting) {
base::ScopedTempDir temp_dir;
base::FilePath android_cache_db_name;
- HistoryDatabase history_db;
+ TestHistoryDatabase history_db;
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
base::FilePath history_db_name = temp_dir.path().AppendASCII("history.db");
android_cache_db_name = temp_dir.path().AppendASCII(
« no previous file with comments | « chrome/browser/autocomplete/history_url_provider.cc ('k') | chrome/browser/history/android/android_history_provider_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698