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

Side by Side Diff: chrome/test/base/testing_profile.h

Issue 10837244: Replace HistoryQuickProvider protobuf-based caching with an SQLite-based database. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Tweak suppression. Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_ 5 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_
6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 20 matching lines...) Expand all
31 class URLRequestContextGetter; 31 class URLRequestContextGetter;
32 } 32 }
33 33
34 namespace quota { 34 namespace quota {
35 class SpecialStoragePolicy; 35 class SpecialStoragePolicy;
36 } 36 }
37 37
38 class CommandLine; 38 class CommandLine;
39 class ExtensionSpecialStoragePolicy; 39 class ExtensionSpecialStoragePolicy;
40 class FaviconService; 40 class FaviconService;
41 class HistoryService;
41 class HostContentSettingsMap; 42 class HostContentSettingsMap;
42 class PrefService; 43 class PrefService;
43 class ProfileDependencyManager; 44 class ProfileDependencyManager;
44 class ProfileSyncService; 45 class ProfileSyncService;
45 class TemplateURLService; 46 class TemplateURLService;
46 class TestingPrefService; 47 class TestingPrefService;
47 48
48 class TestingProfile : public Profile { 49 class TestingProfile : public Profile {
49 public: 50 public:
50 // Profile directory name for the test user. This is "Default" on most 51 // Profile directory name for the test user. This is "Default" on most
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void CreateFaviconService(); 134 void CreateFaviconService();
134 135
135 // Creates the history service. If |delete_file| is true, the history file is 136 // Creates the history service. If |delete_file| is true, the history file is
136 // deleted first, then the HistoryService is created. As TestingProfile 137 // deleted first, then the HistoryService is created. As TestingProfile
137 // deletes the directory containing the files used by HistoryService, this 138 // deletes the directory containing the files used by HistoryService, this
138 // only matters if you're recreating the HistoryService. If |no_db| is true, 139 // only matters if you're recreating the HistoryService. If |no_db| is true,
139 // the history backend will fail to initialize its database; this is useful 140 // the history backend will fail to initialize its database; this is useful
140 // for testing error conditions. 141 // for testing error conditions.
141 void CreateHistoryService(bool delete_file, bool no_db); 142 void CreateHistoryService(bool delete_file, bool no_db);
142 143
144 // Initializes the history service. If |no_db| is true, the history backend
145 // will fail to initialize its database; this is useful for testing error
146 // conditions. Returns true upon success.
147 virtual bool InitHistoryService(HistoryService* history_service,
148 bool no_db);
149
143 // Shuts down and nulls out the reference to HistoryService. 150 // Shuts down and nulls out the reference to HistoryService.
144 void DestroyHistoryService(); 151 void DestroyHistoryService();
145 152
146 // Creates TopSites. This returns immediately, and top sites may not be 153 // Creates TopSites. This returns immediately, and top sites may not be
147 // loaded. Use BlockUntilTopSitesLoaded to ensure TopSites has finished 154 // loaded. Use BlockUntilTopSitesLoaded to ensure TopSites has finished
148 // loading. 155 // loading.
149 void CreateTopSites(); 156 void CreateTopSites();
150 157
151 // Shuts down and nulls out the reference to TopSites. 158 // Shuts down and nulls out the reference to TopSites.
152 void DestroyTopSites(); 159 void DestroyTopSites();
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 // testing. 370 // testing.
364 ProfileDependencyManager* profile_dependency_manager_; 371 ProfileDependencyManager* profile_dependency_manager_;
365 372
366 scoped_ptr<content::MockResourceContext> resource_context_; 373 scoped_ptr<content::MockResourceContext> resource_context_;
367 374
368 // Weak pointer to a delegate for indicating that a profile was created. 375 // Weak pointer to a delegate for indicating that a profile was created.
369 Delegate* delegate_; 376 Delegate* delegate_;
370 }; 377 };
371 378
372 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 379 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698