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

Unified 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, 2 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
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

Powered by Google App Engine
This is Rietveld 408576698