OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TESTING_PROFILE_H_ | 5 #ifndef CHROME_TEST_TESTING_PROFILE_H_ |
6 #define CHROME_TEST_TESTING_PROFILE_H_ | 6 #define CHROME_TEST_TESTING_PROFILE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 | 301 |
302 // Creates and initializes a profile sync service if the tests require one. | 302 // Creates and initializes a profile sync service if the tests require one. |
303 virtual TokenService* GetTokenService(); | 303 virtual TokenService* GetTokenService(); |
304 virtual ProfileSyncService* GetProfileSyncService(); | 304 virtual ProfileSyncService* GetProfileSyncService(); |
305 virtual ProfileSyncService* GetProfileSyncService( | 305 virtual ProfileSyncService* GetProfileSyncService( |
306 const std::string& cros_notes); | 306 const std::string& cros_notes); |
307 virtual CloudPrintProxyService* GetCloudPrintProxyService() { return NULL; } | 307 virtual CloudPrintProxyService* GetCloudPrintProxyService() { return NULL; } |
308 virtual ChromeBlobStorageContext* GetBlobStorageContext() { return NULL; } | 308 virtual ChromeBlobStorageContext* GetBlobStorageContext() { return NULL; } |
309 virtual ExtensionInfoMap* GetExtensionInfoMap() { return NULL; } | 309 virtual ExtensionInfoMap* GetExtensionInfoMap() { return NULL; } |
310 virtual PromoCounter* GetInstantPromoCounter() { return NULL; } | 310 virtual PromoCounter* GetInstantPromoCounter() { return NULL; } |
311 virtual policy::DeviceManagementPolicyProvider* | 311 virtual policy::ProfilePolicyContext* GetPolicyContext() { return NULL; } |
312 GetDeviceManagementPolicyProvider() { | |
313 return NULL; | |
314 } | |
315 | 312 |
316 protected: | 313 protected: |
317 base::Time start_time_; | 314 base::Time start_time_; |
318 scoped_ptr<PrefService> prefs_; | 315 scoped_ptr<PrefService> prefs_; |
319 // ref only for right type, lifecycle is managed by prefs_ | 316 // ref only for right type, lifecycle is managed by prefs_ |
320 TestingPrefService* testing_prefs_; | 317 TestingPrefService* testing_prefs_; |
321 | 318 |
322 private: | 319 private: |
323 // Destroys favicon service if it has been created. | 320 // Destroys favicon service if it has been created. |
324 void DestroyFaviconService(); | 321 void DestroyFaviconService(); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 | 418 |
422 virtual ProfileId GetRuntimeId() { | 419 virtual ProfileId GetRuntimeId() { |
423 return original_profile_->GetRuntimeId(); | 420 return original_profile_->GetRuntimeId(); |
424 } | 421 } |
425 | 422 |
426 protected: | 423 protected: |
427 Profile* original_profile_; | 424 Profile* original_profile_; |
428 }; | 425 }; |
429 | 426 |
430 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 427 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
OLD | NEW |