Index: components/omnibox/browser/history_test_util.h |
diff --git a/components/omnibox/browser/history_test_util.h b/components/omnibox/browser/history_test_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1a9684fdfe380278fb37bfbfc7abe8c128527874 |
--- /dev/null |
+++ b/components/omnibox/browser/history_test_util.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2016 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_OMNIBOX_BROWSER_HISTORY_TEST_UTIL_H_ |
+#define COMPONENTS_OMNIBOX_BROWSER_HISTORY_TEST_UTIL_H_ |
+ |
+#include <string> |
+ |
+#include "base/time/time.h" |
+#include "ui/base/page_transition_types.h" |
+ |
+namespace sql { |
+class Connection; |
+} // namespace sql |
+ |
+namespace history { |
+ |
+void AddURLToDBForTests(sql::Connection* db, |
+ std::size_t url_id, |
+ const std::string& url, |
+ const std::string& title, |
+ int visit_count, |
+ int typed_count, |
+ base::Time last_visit_time); |
+ |
+void AddVisitToDBForTests(sql::Connection* db, |
+ std::size_t visit_id, |
+ std::size_t url_id, |
+ base::Time visit_time, |
+ ui::PageTransition transition); |
+ |
+#endif // COMPONENTS_OMNIBOX_BROWSER_HISTORY_TEST_UTIL_H_ |
+ |
+} // namespace history |