| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 virtual void set_last_selected_directory(const FilePath& path) { | 291 virtual void set_last_selected_directory(const FilePath& path) { |
| 292 last_selected_directory_ = path; | 292 last_selected_directory_ = path; |
| 293 } | 293 } |
| 294 #if defined(OS_CHROMEOS) | 294 #if defined(OS_CHROMEOS) |
| 295 virtual chromeos::ProxyConfigServiceImpl* | 295 virtual chromeos::ProxyConfigServiceImpl* |
| 296 GetChromeOSProxyConfigServiceImpl() { | 296 GetChromeOSProxyConfigServiceImpl() { |
| 297 return NULL; | 297 return NULL; |
| 298 } | 298 } |
| 299 virtual void SetupChromeOSEnterpriseExtensionObserver() { | 299 virtual void SetupChromeOSEnterpriseExtensionObserver() { |
| 300 } | 300 } |
| 301 virtual void ChangeApplicationLocale(const std::string&, bool) { |
| 302 } |
| 301 #endif // defined(OS_CHROMEOS) | 303 #endif // defined(OS_CHROMEOS) |
| 302 | 304 |
| 303 virtual PrefProxyConfigTracker* GetProxyConfigTracker(); | 305 virtual PrefProxyConfigTracker* GetProxyConfigTracker(); |
| 304 | 306 |
| 305 // Schedules a task on the history backend and runs a nested loop until the | 307 // Schedules a task on the history backend and runs a nested loop until the |
| 306 // task is processed. This has the effect of blocking the caller until the | 308 // task is processed. This has the effect of blocking the caller until the |
| 307 // history service processes all pending requests. | 309 // history service processes all pending requests. |
| 308 void BlockUntilHistoryProcessesPendingRequests(); | 310 void BlockUntilHistoryProcessesPendingRequests(); |
| 309 | 311 |
| 310 // Creates and initializes a profile sync service if the tests require one. | 312 // Creates and initializes a profile sync service if the tests require one. |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 | 439 |
| 438 virtual ProfileId GetRuntimeId() { | 440 virtual ProfileId GetRuntimeId() { |
| 439 return original_profile_->GetRuntimeId(); | 441 return original_profile_->GetRuntimeId(); |
| 440 } | 442 } |
| 441 | 443 |
| 442 protected: | 444 protected: |
| 443 Profile* original_profile_; | 445 Profile* original_profile_; |
| 444 }; | 446 }; |
| 445 | 447 |
| 446 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 448 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
| OLD | NEW |