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

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: Address comments. 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::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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698