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

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

Issue 5153002: Use a service to create device management backends. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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) 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
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::DeviceManagementService* GetDeviceManagementService() {
312 return NULL;
313 }
311 virtual policy::DeviceManagementPolicyProvider* 314 virtual policy::DeviceManagementPolicyProvider*
312 GetDeviceManagementPolicyProvider() { 315 GetDeviceManagementPolicyProvider() {
313 return NULL; 316 return NULL;
314 } 317 }
315 318
316 protected: 319 protected:
317 base::Time start_time_; 320 base::Time start_time_;
318 scoped_ptr<PrefService> prefs_; 321 scoped_ptr<PrefService> prefs_;
319 // ref only for right type, lifecycle is managed by prefs_ 322 // ref only for right type, lifecycle is managed by prefs_
320 TestingPrefService* testing_prefs_; 323 TestingPrefService* testing_prefs_;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 424
422 virtual ProfileId GetRuntimeId() { 425 virtual ProfileId GetRuntimeId() {
423 return original_profile_->GetRuntimeId(); 426 return original_profile_->GetRuntimeId();
424 } 427 }
425 428
426 protected: 429 protected:
427 Profile* original_profile_; 430 Profile* original_profile_;
428 }; 431 };
429 432
430 #endif // CHROME_TEST_TESTING_PROFILE_H_ 433 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698