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

Side by Side Diff: components/omnibox/browser/history_test_util.h

Issue 2300323003: Adding performance tests for HQP that represent importance of optimising HistoryItemsForTerms method (Closed)
Patch Set: Rebasing on prepared components perftests. Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698