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

Unified Diff: components/history/core/test/test_history_database.h

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 | « components/history/core/test/BUILD.gn ('k') | components/history/core/test/test_history_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/test/test_history_database.h
diff --git a/components/history/core/test/test_history_database.h b/components/history/core/test/test_history_database.h
new file mode 100644
index 0000000000000000000000000000000000000000..178b8a88a64f903b498cd5022cfd89cb2cbb5360
--- /dev/null
+++ b/components/history/core/test/test_history_database.h
@@ -0,0 +1,32 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_HISTORY_CORE_TEST_TEST_HISTORY_DATABASE_H_
+#define COMPONENTS_HISTORY_CORE_TEST_TEST_HISTORY_DATABASE_H_
+
+#include "components/history/core/browser/history_database.h"
+
+namespace base {
+class FilePath;
+}
+
+namespace history {
+
+struct HistoryDatabaseParams;
+
+// TestHistoryDatabase is a simple wrapper around HistoryDatabase that provides
+// default values to the constructor.
+class TestHistoryDatabase : public HistoryDatabase {
+ public:
+ TestHistoryDatabase();
+ ~TestHistoryDatabase() override;
+};
+
+// Returns a HistoryDatabaseParams for unit tests.
+HistoryDatabaseParams TestHistoryDatabaseParamsForPath(
+ const base::FilePath& history_dir);
+
+} // namespace history
+
+#endif // COMPONENTS_HISTORY_CORE_TEST_TEST_HISTORY_DATABASE_H_
« no previous file with comments | « components/history/core/test/BUILD.gn ('k') | components/history/core/test/test_history_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698