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

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

Issue 3047052: chromeos: 1st draft of ProxyConfigService for chromeos... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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_tests.gypi ('k') | net/net.gyp » ('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) 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 } 229 }
230 virtual StatusTray* GetStatusTray() { 230 virtual StatusTray* GetStatusTray() {
231 return NULL; 231 return NULL;
232 } 232 }
233 virtual FilePath last_selected_directory() { 233 virtual FilePath last_selected_directory() {
234 return last_selected_directory_; 234 return last_selected_directory_;
235 } 235 }
236 virtual void set_last_selected_directory(const FilePath& path) { 236 virtual void set_last_selected_directory(const FilePath& path) {
237 last_selected_directory_ = path; 237 last_selected_directory_ = path;
238 } 238 }
239 239 #if defined(OS_CHROMEOS)
240 virtual chromeos::ProxyConfigServiceImpl*
241 GetChromeOSProxyConfigServiceImpl() {
242 return NULL;
243 }
244 #endif // defined(OS_CHROMEOS)
240 245
241 // Schedules a task on the history backend and runs a nested loop until the 246 // Schedules a task on the history backend and runs a nested loop until the
242 // task is processed. This has the effect of blocking the caller until the 247 // task is processed. This has the effect of blocking the caller until the
243 // history service processes all pending requests. 248 // history service processes all pending requests.
244 void BlockUntilHistoryProcessesPendingRequests(); 249 void BlockUntilHistoryProcessesPendingRequests();
245 250
246 // Creates and initializes a profile sync service if the tests require one. 251 // Creates and initializes a profile sync service if the tests require one.
247 virtual TokenService* GetTokenService(); 252 virtual TokenService* GetTokenService();
248 virtual ProfileSyncService* GetProfileSyncService(); 253 virtual ProfileSyncService* GetProfileSyncService();
249 virtual CloudPrintProxyService* GetCloudPrintProxyService() { return NULL; } 254 virtual CloudPrintProxyService* GetCloudPrintProxyService() { return NULL; }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 352
348 virtual ProfileId GetRuntimeId() { 353 virtual ProfileId GetRuntimeId() {
349 return original_profile_->GetRuntimeId(); 354 return original_profile_->GetRuntimeId();
350 } 355 }
351 356
352 protected: 357 protected:
353 Profile* original_profile_; 358 Profile* original_profile_;
354 }; 359 };
355 360
356 #endif // CHROME_TEST_TESTING_PROFILE_H_ 361 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698