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

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

Issue 870063002: Componentize TopSites, TopSitesBackend, TopSitesDatabase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@815983002
Patch Set: Fix typo 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/database_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/test/database_test_utils.h
diff --git a/components/history/core/test/database_test_utils.h b/components/history/core/test/database_test_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..9e82ebb1f00014b3332261fd9f9a1b58d174c725
--- /dev/null
+++ b/components/history/core/test/database_test_utils.h
@@ -0,0 +1,23 @@
+// 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_HISTORY_DATABASE_TEST_UTILS_H_
+#define COMPONENTS_HISTORY_CORE_HISTORY_DATABASE_TEST_UTILS_H_
+
+#include "base/compiler_specific.h"
+
+namespace base {
+class FilePath;
+}
+
+namespace history {
+
+// Create the test database at |db_path| from the golden file at |ascii_path| in
+// the "history" subdir of the components test data dir.
+WARN_UNUSED_RESULT bool CreateDatabaseFromSQL(const base::FilePath& db_path,
+ const char* ascii_path);
+
+} // namespace history
+
+#endif // COMPONENTS_HISTORY_CORE_HISTORY_DATABASE_TEST_UTILS_H_
« no previous file with comments | « components/history/core/test/BUILD.gn ('k') | components/history/core/test/database_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698