Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 287 virtual void set_last_selected_directory(const FilePath& path) { | 287 virtual void set_last_selected_directory(const FilePath& path) { |
| 288 last_selected_directory_ = path; | 288 last_selected_directory_ = path; |
| 289 } | 289 } |
| 290 #if defined(OS_CHROMEOS) | 290 #if defined(OS_CHROMEOS) |
| 291 virtual chromeos::ProxyConfigServiceImpl* | 291 virtual chromeos::ProxyConfigServiceImpl* |
| 292 GetChromeOSProxyConfigServiceImpl() { | 292 GetChromeOSProxyConfigServiceImpl() { |
| 293 return NULL; | 293 return NULL; |
| 294 } | 294 } |
| 295 #endif // defined(OS_CHROMEOS) | 295 #endif // defined(OS_CHROMEOS) |
| 296 | 296 |
| 297 virtual PrefProxyConfigTracker* GetProxyConfigTracker() { | |
| 298 return NULL; | |
|
eroman
2010/11/20 03:19:07
I wander if this is going to cause problems on any
Mattias Nissler (ping if slow)
2010/11/21 22:49:14
Currently the tests don't need this. Let's change
| |
| 299 } | |
| 300 | |
| 297 // Schedules a task on the history backend and runs a nested loop until the | 301 // Schedules a task on the history backend and runs a nested loop until the |
| 298 // task is processed. This has the effect of blocking the caller until the | 302 // task is processed. This has the effect of blocking the caller until the |
| 299 // history service processes all pending requests. | 303 // history service processes all pending requests. |
| 300 void BlockUntilHistoryProcessesPendingRequests(); | 304 void BlockUntilHistoryProcessesPendingRequests(); |
| 301 | 305 |
| 302 // Creates and initializes a profile sync service if the tests require one. | 306 // Creates and initializes a profile sync service if the tests require one. |
| 303 virtual TokenService* GetTokenService(); | 307 virtual TokenService* GetTokenService(); |
| 304 virtual ProfileSyncService* GetProfileSyncService(); | 308 virtual ProfileSyncService* GetProfileSyncService(); |
| 305 virtual ProfileSyncService* GetProfileSyncService( | 309 virtual ProfileSyncService* GetProfileSyncService( |
| 306 const std::string& cros_notes); | 310 const std::string& cros_notes); |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 417 | 421 |
| 418 virtual ProfileId GetRuntimeId() { | 422 virtual ProfileId GetRuntimeId() { |
| 419 return original_profile_->GetRuntimeId(); | 423 return original_profile_->GetRuntimeId(); |
| 420 } | 424 } |
| 421 | 425 |
| 422 protected: | 426 protected: |
| 423 Profile* original_profile_; | 427 Profile* original_profile_; |
| 424 }; | 428 }; |
| 425 | 429 |
| 426 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 430 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
| OLD | NEW |