OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_HISTORY_TEST_UTIL_H_ |
| 6 #define COMPONENTS_OMNIBOX_BROWSER_HISTORY_TEST_UTIL_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/time/time.h" |
| 11 #include "ui/base/page_transition_types.h" |
| 12 |
| 13 namespace sql { |
| 14 class Connection; |
| 15 } // namespace sql |
| 16 |
| 17 namespace history { |
| 18 |
| 19 void AddURLToDBForTests(sql::Connection* db, |
| 20 std::size_t url_id, |
| 21 const std::string& url, |
| 22 const std::string& title, |
| 23 int visit_count, |
| 24 int typed_count, |
| 25 base::Time last_visit_time); |
| 26 |
| 27 void AddVisitToDBForTests(sql::Connection* db, |
| 28 std::size_t visit_id, |
| 29 std::size_t url_id, |
| 30 base::Time visit_time, |
| 31 ui::PageTransition transition); |
| 32 |
| 33 #endif // COMPONENTS_OMNIBOX_BROWSER_HISTORY_TEST_UTIL_H_ |
| 34 |
| 35 } // namespace history |
OLD | NEW |