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

Unified Diff: components/history/core/browser/history_service.h

Issue 2732653002: Add favicon integration tests for FaviconDriverImpl (Closed)
Patch Set: Added verification of color Created 3 years, 10 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/favicon/ios/web_favicon_driver.mm ('k') | components/history/core/browser/history_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/history_service.h
diff --git a/components/history/core/browser/history_service.h b/components/history/core/browser/history_service.h
index dd6b19aa490f1898e9413cc7fa355269966a4ef5..8b3b641239ca280acfa2ab3a430794e3e5a7a41b 100644
--- a/components/history/core/browser/history_service.h
+++ b/components/history/core/browser/history_service.h
@@ -481,6 +481,10 @@ class HistoryService : public syncer::SyncableService, public KeyedService {
// Testing -------------------------------------------------------------------
+ // Similar to Init() but uses the provided |task_runner| for the backend.
+ bool InitForTest(const HistoryDatabaseParams& history_database_params,
+ scoped_refptr<base::SequencedTaskRunner> task_runner);
+
// Runs |flushed| after bouncing off the history thread.
void FlushForTest(const base::Closure& flushed);
@@ -573,6 +577,11 @@ class HistoryService : public syncer::SyncableService, public KeyedService {
// that is only set by unittests which causes the backend to not init its DB.
bool Init(bool no_db, const HistoryDatabaseParams& history_database_params);
+ // Similar to Init() but uses the provided |task_runner| for the backend.
+ bool InitWithTaskRunner(bool no_db,
+ const HistoryDatabaseParams& history_database_params,
+ scoped_refptr<base::SequencedTaskRunner> task_runner);
+
// Called by the HistoryURLProvider class to schedule an autocomplete, it
// will be called back on the internal history thread with the history
// database so it can query. See history_url_provider.h for a diagram.
« no previous file with comments | « components/favicon/ios/web_favicon_driver.mm ('k') | components/history/core/browser/history_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698