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

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

Issue 6461024: Revert 74292 - Splits ChromeURLDataManager into 2 chunks:... (Closed) Base URL: svn://svn.chromium.org/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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/test/testing_profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
277 virtual PrerenderManager* GetPrerenderManager(); 276 virtual PrerenderManager* GetPrerenderManager();
278 virtual PrefService* GetOffTheRecordPrefs(); 277 virtual PrefService* GetOffTheRecordPrefs();
279 278
280 protected: 279 protected:
281 base::Time start_time_; 280 base::Time start_time_;
282 scoped_ptr<PrefService> prefs_; 281 scoped_ptr<PrefService> prefs_;
283 // ref only for right type, lifecycle is managed by prefs_ 282 // ref only for right type, lifecycle is managed by prefs_
284 TestingPrefService* testing_prefs_; 283 TestingPrefService* testing_prefs_;
285 284
286 private: 285 private:
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 // is disposed. 374 // is disposed.
376 scoped_refptr<ExtensionService> extensions_service_; 375 scoped_refptr<ExtensionService> extensions_service_;
377 376
378 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_; 377 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_;
379 378
380 // The proxy prefs tracker. 379 // The proxy prefs tracker.
381 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 380 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
382 381
383 // We use a temporary directory to store testing profile data. 382 // We use a temporary directory to store testing profile data.
384 ScopedTempDir temp_dir_; 383 ScopedTempDir temp_dir_;
385
386 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_;
387 }; 384 };
388 385
389 // A profile that derives from another profile. This does not actually 386 // A profile that derives from another profile. This does not actually
390 // override anything except the GetRuntimeId() in order to test sharing of 387 // override anything except the GetRuntimeId() in order to test sharing of
391 // site information. 388 // site information.
392 class DerivedTestingProfile : public TestingProfile { 389 class DerivedTestingProfile : public TestingProfile {
393 public: 390 public:
394 explicit DerivedTestingProfile(Profile* profile) 391 explicit DerivedTestingProfile(Profile* profile)
395 : original_profile_(profile) {} 392 : original_profile_(profile) {}
396 393
397 virtual ProfileId GetRuntimeId() { 394 virtual ProfileId GetRuntimeId() {
398 return original_profile_->GetRuntimeId(); 395 return original_profile_->GetRuntimeId();
399 } 396 }
400 397
401 protected: 398 protected:
402 Profile* original_profile_; 399 Profile* original_profile_;
403 }; 400 };
404 401
405 #endif // CHROME_TEST_TESTING_PROFILE_H_ 402 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/test/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698