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

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

Issue 4096004: PyAuto hooks for Sync in TestingAutomationProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase; Addressing final review comment. Created 10 years, 1 month 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/test/pyautolib/pyauto.py ('k') | third_party/npapi/bindings/npapi.h » ('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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 virtual HostContentSettingsMap* GetHostContentSettingsMap(); 233 virtual HostContentSettingsMap* GetHostContentSettingsMap();
234 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap(); 234 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap();
235 virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); 235 virtual GeolocationPermissionContext* GetGeolocationPermissionContext();
236 virtual HostZoomMap* GetHostZoomMap() { return NULL; } 236 virtual HostZoomMap* GetHostZoomMap() { return NULL; }
237 void set_session_service(SessionService* session_service); 237 void set_session_service(SessionService* session_service);
238 virtual SessionService* GetSessionService() { return session_service_.get(); } 238 virtual SessionService* GetSessionService() { return session_service_.get(); }
239 virtual void ShutdownSessionService() {} 239 virtual void ShutdownSessionService() {}
240 virtual bool HasSessionService() const { 240 virtual bool HasSessionService() const {
241 return (session_service_.get() != NULL); 241 return (session_service_.get() != NULL);
242 } 242 }
243 virtual bool HasProfileSyncService() const {
244 return (profile_sync_service_.get() != NULL);
245 }
243 virtual std::wstring GetName() { return std::wstring(); } 246 virtual std::wstring GetName() { return std::wstring(); }
244 virtual void SetName(const std::wstring& name) {} 247 virtual void SetName(const std::wstring& name) {}
245 virtual std::wstring GetID() { return id_; } 248 virtual std::wstring GetID() { return id_; }
246 virtual void SetID(const std::wstring& id) { id_ = id; } 249 virtual void SetID(const std::wstring& id) { id_ = id; }
247 void set_last_session_exited_cleanly(bool value) { 250 void set_last_session_exited_cleanly(bool value) {
248 last_session_exited_cleanly_ = value; 251 last_session_exited_cleanly_ = value;
249 } 252 }
250 virtual bool DidLastSessionExitCleanly() { 253 virtual bool DidLastSessionExitCleanly() {
251 return last_session_exited_cleanly_; 254 return last_session_exited_cleanly_;
252 } 255 }
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 415
413 virtual ProfileId GetRuntimeId() { 416 virtual ProfileId GetRuntimeId() {
414 return original_profile_->GetRuntimeId(); 417 return original_profile_->GetRuntimeId();
415 } 418 }
416 419
417 protected: 420 protected:
418 Profile* original_profile_; 421 Profile* original_profile_;
419 }; 422 };
420 423
421 #endif // CHROME_TEST_TESTING_PROFILE_H_ 424 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/test/pyautolib/pyauto.py ('k') | third_party/npapi/bindings/npapi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698