| Index: chrome/test/base/testing_profile.h
|
| ===================================================================
|
| --- chrome/test/base/testing_profile.h (revision 110703)
|
| +++ chrome/test/base/testing_profile.h (working copy)
|
| @@ -59,8 +59,15 @@
|
| // for this profile. This constructor is meant to be used by
|
| // TestingProfileManager::CreateTestingProfile. If you need to create multi-
|
| // profile profiles, use that factory method instead of this directly.
|
| + // Exception: if you need to create multi-profile profiles for testing the
|
| + // ProfileManager, then use the constructor below instead.
|
| explicit TestingProfile(const FilePath& path);
|
|
|
| + // Multi-profile aware constructor that takes the path to a directory managed
|
| + // for this profile and a delegate. This constructor is meant to be used
|
| + // for unittesting the ProfileManager.
|
| + TestingProfile(const FilePath& path, Delegate* delegate);
|
| +
|
| virtual ~TestingProfile();
|
|
|
| // Creates the favicon service. Consequent calls would recreate the service.
|
| @@ -228,6 +235,9 @@
|
| void set_last_session_exited_cleanly(bool value) {
|
| last_session_exited_cleanly_ = value;
|
| }
|
| + void set_enable_lazy_service_initialization(bool value) {
|
| + enable_lazy_service_initialization_ = value;
|
| + }
|
| virtual bool DidLastSessionExitCleanly();
|
| virtual void MergeResourceString(int message_id,
|
| std::wstring* output_string) {}
|
| @@ -297,6 +307,9 @@
|
| // Common initialization between the two constructors.
|
| void Init();
|
|
|
| + // Finishes initialization when a profile is created asynchronously.
|
| + void FinishInit();
|
| +
|
| // Destroys favicon service if it has been created.
|
| void DestroyFaviconService();
|
|
|
| @@ -350,6 +363,9 @@
|
| // Did the last session exit cleanly? Default is true.
|
| bool last_session_exited_cleanly_;
|
|
|
| + // Do we create services if they do not exist? Default is false.
|
| + bool enable_lazy_service_initialization_;
|
| +
|
| // FileSystemContext. Created lazily by GetFileSystemContext().
|
| scoped_refptr<fileapi::FileSystemContext> file_system_context_;
|
|
|
| @@ -406,6 +422,9 @@
|
|
|
| // The QuotaManager, only available if set explicitly via SetQuotaManager.
|
| scoped_refptr<quota::QuotaManager> quota_manager_;
|
| +
|
| + // Weak pointer to a delegate for indicating that a profile was created.
|
| + Delegate* delegate_;
|
| };
|
|
|
| #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
|
|
|