OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 virtual void SetupChromeOSEnterpriseExtensionObserver() { | 254 virtual void SetupChromeOSEnterpriseExtensionObserver() { |
255 } | 255 } |
256 virtual void InitChromeOSPreferences() { | 256 virtual void InitChromeOSPreferences() { |
257 } | 257 } |
258 virtual void ChangeAppLocale(const std::string&, AppLocaleChangedVia) { | 258 virtual void ChangeAppLocale(const std::string&, AppLocaleChangedVia) { |
259 } | 259 } |
260 virtual void OnLogin() { | 260 virtual void OnLogin() { |
261 } | 261 } |
262 #endif // defined(OS_CHROMEOS) | 262 #endif // defined(OS_CHROMEOS) |
263 | 263 |
264 virtual PrefProxyConfigTracker* GetProxyConfigTracker(); | 264 virtual PrefProxyConfigTrackerType* GetProxyConfigTracker(); |
265 | 265 |
266 // Schedules a task on the history backend and runs a nested loop until the | 266 // Schedules a task on the history backend and runs a nested loop until the |
267 // task is processed. This has the effect of blocking the caller until the | 267 // task is processed. This has the effect of blocking the caller until the |
268 // history service processes all pending requests. | 268 // history service processes all pending requests. |
269 void BlockUntilHistoryProcessesPendingRequests(); | 269 void BlockUntilHistoryProcessesPendingRequests(); |
270 | 270 |
271 // Creates and initializes a profile sync service if the tests require one. | 271 // Creates and initializes a profile sync service if the tests require one. |
272 virtual TokenService* GetTokenService(); | 272 virtual TokenService* GetTokenService(); |
273 virtual ProfileSyncService* GetProfileSyncService(); | 273 virtual ProfileSyncService* GetProfileSyncService(); |
274 virtual ProfileSyncService* GetProfileSyncService( | 274 virtual ProfileSyncService* GetProfileSyncService( |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 scoped_ptr<ExtensionPrefs> extension_prefs_; | 375 scoped_ptr<ExtensionPrefs> extension_prefs_; |
376 | 376 |
377 scoped_ptr<ExtensionService> extension_service_; | 377 scoped_ptr<ExtensionService> extension_service_; |
378 | 378 |
379 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_; | 379 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_; |
380 | 380 |
381 scoped_refptr<ExtensionSpecialStoragePolicy> | 381 scoped_refptr<ExtensionSpecialStoragePolicy> |
382 extension_special_storage_policy_; | 382 extension_special_storage_policy_; |
383 | 383 |
384 // The proxy prefs tracker. | 384 // The proxy prefs tracker. |
385 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 385 scoped_ptr<PrefProxyConfigTrackerType> pref_proxy_config_tracker_; |
386 | 386 |
387 // We use a temporary directory to store testing profile data. In a multi- | 387 // We use a temporary directory to store testing profile data. In a multi- |
388 // profile environment, this is invalid and the directory is managed by the | 388 // profile environment, this is invalid and the directory is managed by the |
389 // TestingProfileManager. | 389 // TestingProfileManager. |
390 ScopedTempDir temp_dir_; | 390 ScopedTempDir temp_dir_; |
391 // The path to this profile. This will be valid in either of the two above | 391 // The path to this profile. This will be valid in either of the two above |
392 // cases. | 392 // cases. |
393 FilePath profile_path_; | 393 FilePath profile_path_; |
394 | 394 |
395 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; | 395 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; |
396 | 396 |
397 // We keep a weak pointer to the dependency manager we want to notify on our | 397 // We keep a weak pointer to the dependency manager we want to notify on our |
398 // death. Defaults to the Singleton implementation but overridable for | 398 // death. Defaults to the Singleton implementation but overridable for |
399 // testing. | 399 // testing. |
400 ProfileDependencyManager* profile_dependency_manager_; | 400 ProfileDependencyManager* profile_dependency_manager_; |
401 | 401 |
402 scoped_refptr<ChromeAppCacheService> appcache_service_; | 402 scoped_refptr<ChromeAppCacheService> appcache_service_; |
403 | 403 |
404 // The QuotaManager, only available if set explicitly via SetQuotaManager. | 404 // The QuotaManager, only available if set explicitly via SetQuotaManager. |
405 scoped_refptr<quota::QuotaManager> quota_manager_; | 405 scoped_refptr<quota::QuotaManager> quota_manager_; |
406 }; | 406 }; |
407 | 407 |
408 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 408 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
OLD | NEW |