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

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

Issue 6286131: 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 // Creates and initializes a profile sync service if the tests require one. 313 // Creates and initializes a profile sync service if the tests require one.
314 virtual TokenService* GetTokenService(); 314 virtual TokenService* GetTokenService();
315 virtual ProfileSyncService* GetProfileSyncService(); 315 virtual ProfileSyncService* GetProfileSyncService();
316 virtual ProfileSyncService* GetProfileSyncService( 316 virtual ProfileSyncService* GetProfileSyncService(
317 const std::string& cros_notes); 317 const std::string& cros_notes);
318 virtual CloudPrintProxyService* GetCloudPrintProxyService() { return NULL; } 318 virtual CloudPrintProxyService* GetCloudPrintProxyService() { return NULL; }
319 virtual ChromeBlobStorageContext* GetBlobStorageContext() { return NULL; } 319 virtual ChromeBlobStorageContext* GetBlobStorageContext() { return NULL; }
320 virtual ExtensionInfoMap* GetExtensionInfoMap() { return NULL; } 320 virtual ExtensionInfoMap* GetExtensionInfoMap() { return NULL; }
321 virtual PromoCounter* GetInstantPromoCounter() { return NULL; } 321 virtual PromoCounter* GetInstantPromoCounter() { return NULL; }
322 virtual policy::ProfilePolicyContext* GetPolicyContext() { return NULL; } 322 virtual policy::ProfilePolicyContext* GetPolicyContext() { return NULL; }
323 virtual ChromeURLDataManager* GetChromeURLDataManager();
323 virtual PrerenderManager* GetPrerenderManager() { return NULL; } 324 virtual PrerenderManager* GetPrerenderManager() { return NULL; }
324 virtual PrefService* GetOffTheRecordPrefs() { return NULL; } 325 virtual PrefService* GetOffTheRecordPrefs() { return NULL; }
325 326
326 protected: 327 protected:
327 base::Time start_time_; 328 base::Time start_time_;
328 scoped_ptr<PrefService> prefs_; 329 scoped_ptr<PrefService> prefs_;
329 // ref only for right type, lifecycle is managed by prefs_ 330 // ref only for right type, lifecycle is managed by prefs_
330 TestingPrefService* testing_prefs_; 331 TestingPrefService* testing_prefs_;
331 332
332 private: 333 private:
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 // is disposed. 422 // is disposed.
422 scoped_refptr<ExtensionService> extensions_service_; 423 scoped_refptr<ExtensionService> extensions_service_;
423 424
424 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_; 425 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_;
425 426
426 // The proxy prefs tracker. 427 // The proxy prefs tracker.
427 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 428 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
428 429
429 // We use a temporary directory to store testing profile data. 430 // We use a temporary directory to store testing profile data.
430 ScopedTempDir temp_dir_; 431 ScopedTempDir temp_dir_;
432
433 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_;
431 }; 434 };
432 435
433 // A profile that derives from another profile. This does not actually 436 // A profile that derives from another profile. This does not actually
434 // override anything except the GetRuntimeId() in order to test sharing of 437 // override anything except the GetRuntimeId() in order to test sharing of
435 // site information. 438 // site information.
436 class DerivedTestingProfile : public TestingProfile { 439 class DerivedTestingProfile : public TestingProfile {
437 public: 440 public:
438 explicit DerivedTestingProfile(Profile* profile) 441 explicit DerivedTestingProfile(Profile* profile)
439 : original_profile_(profile) {} 442 : original_profile_(profile) {}
440 443
441 virtual ProfileId GetRuntimeId() { 444 virtual ProfileId GetRuntimeId() {
442 return original_profile_->GetRuntimeId(); 445 return original_profile_->GetRuntimeId();
443 } 446 }
444 447
445 protected: 448 protected:
446 Profile* original_profile_; 449 Profile* original_profile_;
447 }; 450 };
448 451
449 #endif // CHROME_TEST_TESTING_PROFILE_H_ 452 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698