summaryrefslogtreecommitdiffstats
path: root/chrome/test/testing_profile.h
diff options
context:
space:
mode:
authorrsimha@chromium.org <rsimha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-03 23:27:31 +0000
committerrsimha@chromium.org <rsimha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-03 23:27:31 +0000
commit909a81eaa4568f4b13562dc3f34ac7268b590f09 (patch)
tree958829ea557102634d623123a77f0ae20a7dd6da /chrome/test/testing_profile.h
parentc09fb1c79c0a3e76dbb6091e4b718fd9bb197395 (diff)
downloadchromium_src-909a81eaa4568f4b13562dc3f34ac7268b590f09.zip
chromium_src-909a81eaa4568f4b13562dc3f34ac7268b590f09.tar.gz
chromium_src-909a81eaa4568f4b13562dc3f34ac7268b590f09.tar.bz2
PyAuto hooks for Sync in TestingAutomationProvider
This patch exposes hooks for sync in TestingAutomationProvider that the chrome pyauto test suite can use. It contains the following changes: - Partial revert of an earlier change to ProfileSyncServiceHarness. Some of its methods were made pure virtual, but this ended up being unnecessary. Also ripped out unnecessary code from LiveSyncTest. - Minor refactor of ProfileSyncServiceHarness to allow for scenarios where the browser is restarted. - A bunch of new methods in TestingAutomationProvider: SignInToSync, GetSyncInfo, AwaitSyncCycleCompletion, EnableSyncForDatatypes and DisableSyncForDatatypes. - A new method in model_type.h/cc called ModelTypeFromString. Required for automation. - New APIs in pyauto.py for sync. - New test suite sync.py with sample tests. BUG=53651, 60970, 56460, 61639 TEST=run pyauto sync tests Review URL: http://codereview.chromium.org/4096004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64988 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/testing_profile.h')
-rw-r--r--chrome/test/testing_profile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/test/testing_profile.h b/chrome/test/testing_profile.h
index 7cbe718..5604b15 100644
--- a/chrome/test/testing_profile.h
+++ b/chrome/test/testing_profile.h
@@ -240,6 +240,9 @@ class TestingProfile : public Profile {
virtual bool HasSessionService() const {
return (session_service_.get() != NULL);
}
+ virtual bool HasProfileSyncService() const {
+ return (profile_sync_service_.get() != NULL);
+ }
virtual std::wstring GetName() { return std::wstring(); }
virtual void SetName(const std::wstring& name) {}
virtual std::wstring GetID() { return id_; }