diff options
Diffstat (limited to 'chrome/test/base/testing_profile.h')
-rw-r--r-- | chrome/test/base/testing_profile.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/test/base/testing_profile.h b/chrome/test/base/testing_profile.h index 2cf3970..1db59a8 100644 --- a/chrome/test/base/testing_profile.h +++ b/chrome/test/base/testing_profile.h @@ -38,6 +38,7 @@ class SpecialStoragePolicy; class CommandLine; class ExtensionSpecialStoragePolicy; class FaviconService; +class HistoryService; class HostContentSettingsMap; class PrefService; class ProfileDependencyManager; @@ -140,6 +141,12 @@ class TestingProfile : public Profile { // for testing error conditions. void CreateHistoryService(bool delete_file, bool no_db); + // Initializes the history service. If |no_db| is true, the history backend + // will fail to initialize its database; this is useful for testing error + // conditions. Returns true upon success. + virtual bool InitHistoryService(HistoryService* history_service, + bool no_db); + // Shuts down and nulls out the reference to HistoryService. void DestroyHistoryService(); |