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

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

Issue 6479007: Attempt 3 at: Splits ChromeURLDataManager into 2 chunks:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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) 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_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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // Creates and initializes a profile sync service if the tests require one. 266 // Creates and initializes a profile sync service if the tests require one.
267 virtual TokenService* GetTokenService(); 267 virtual TokenService* GetTokenService();
268 virtual ProfileSyncService* GetProfileSyncService(); 268 virtual ProfileSyncService* GetProfileSyncService();
269 virtual ProfileSyncService* GetProfileSyncService( 269 virtual ProfileSyncService* GetProfileSyncService(
270 const std::string& cros_notes); 270 const std::string& cros_notes);
271 virtual CloudPrintProxyService* GetCloudPrintProxyService(); 271 virtual CloudPrintProxyService* GetCloudPrintProxyService();
272 virtual ChromeBlobStorageContext* GetBlobStorageContext(); 272 virtual ChromeBlobStorageContext* GetBlobStorageContext();
273 virtual ExtensionInfoMap* GetExtensionInfoMap(); 273 virtual ExtensionInfoMap* GetExtensionInfoMap();
274 virtual PromoCounter* GetInstantPromoCounter(); 274 virtual PromoCounter* GetInstantPromoCounter();
275 virtual policy::ProfilePolicyContext* GetPolicyContext(); 275 virtual policy::ProfilePolicyContext* GetPolicyContext();
276 virtual ChromeURLDataManager* GetChromeURLDataManager();
276 virtual PrerenderManager* GetPrerenderManager(); 277 virtual PrerenderManager* GetPrerenderManager();
277 virtual PrefService* GetOffTheRecordPrefs(); 278 virtual PrefService* GetOffTheRecordPrefs();
278 279
279 protected: 280 protected:
280 base::Time start_time_; 281 base::Time start_time_;
281 scoped_ptr<PrefService> prefs_; 282 scoped_ptr<PrefService> prefs_;
282 // ref only for right type, lifecycle is managed by prefs_ 283 // ref only for right type, lifecycle is managed by prefs_
283 TestingPrefService* testing_prefs_; 284 TestingPrefService* testing_prefs_;
284 285
285 private: 286 private:
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 // is disposed. 375 // is disposed.
375 scoped_refptr<ExtensionService> extensions_service_; 376 scoped_refptr<ExtensionService> extensions_service_;
376 377
377 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_; 378 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_;
378 379
379 // The proxy prefs tracker. 380 // The proxy prefs tracker.
380 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 381 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
381 382
382 // We use a temporary directory to store testing profile data. 383 // We use a temporary directory to store testing profile data.
383 ScopedTempDir temp_dir_; 384 ScopedTempDir temp_dir_;
385
386 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_;
384 }; 387 };
385 388
386 // A profile that derives from another profile. This does not actually 389 // A profile that derives from another profile. This does not actually
387 // override anything except the GetRuntimeId() in order to test sharing of 390 // override anything except the GetRuntimeId() in order to test sharing of
388 // site information. 391 // site information.
389 class DerivedTestingProfile : public TestingProfile { 392 class DerivedTestingProfile : public TestingProfile {
390 public: 393 public:
391 explicit DerivedTestingProfile(Profile* profile) 394 explicit DerivedTestingProfile(Profile* profile)
392 : original_profile_(profile) {} 395 : original_profile_(profile) {}
393 396
394 virtual ProfileId GetRuntimeId() { 397 virtual ProfileId GetRuntimeId() {
395 return original_profile_->GetRuntimeId(); 398 return original_profile_->GetRuntimeId();
396 } 399 }
397 400
398 protected: 401 protected:
399 Profile* original_profile_; 402 Profile* original_profile_;
400 }; 403 };
401 404
402 #endif // CHROME_TEST_TESTING_PROFILE_H_ 405 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698