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

Unified Diff: chrome/test/testing_profile.h

Issue 343067: Unittest for fix to allow navigation when there is no history DB.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/search_engines/template_url_model_unittest.cc ('k') | chrome/test/testing_profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/testing_profile.h
===================================================================
--- chrome/test/testing_profile.h (revision 30724)
+++ chrome/test/testing_profile.h (working copy)
@@ -32,9 +32,11 @@
// Creates the history service. If |delete_file| is true, the history file is
// deleted first, then the HistoryService is created. As TestingProfile
- // deletes the directory containing the files used by HistoryService, the
- // boolean only matters if you're recreating the HistoryService.
- void CreateHistoryService(bool delete_file);
+ // deletes the directory containing the files used by HistoryService, this
+ // only matters if you're recreating the HistoryService. If |no_db| is true,
+ // the history backend will fail to initialize its database; this is useful
+ // for testing error conditions.
+ void CreateHistoryService(bool delete_file, bool no_db);
// Creates the BookmkarBarModel. If not invoked the bookmark bar model is
// NULL. If |delete_file| is true, the bookmarks file is deleted first, then
« no previous file with comments | « chrome/browser/search_engines/template_url_model_unittest.cc ('k') | chrome/test/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698