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

Unified Diff: chrome/browser/automation/testing_automation_provider.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/testing_automation_provider.h
diff --git a/chrome/browser/automation/testing_automation_provider.h b/chrome/browser/automation/testing_automation_provider.h
index dc766037775acd687b94dc7cd6f2b642623b6b0f..8cd999d5630c90938aad417f145f73047697df21 100644
--- a/chrome/browser/automation/testing_automation_provider.h
+++ b/chrome/browser/automation/testing_automation_provider.h
@@ -7,9 +7,11 @@
#pragma once
#include "base/basictypes.h"
+#include "base/scoped_ptr.h"
#include "chrome/browser/automation/automation_provider.h"
#include "chrome/browser/browser_list.h"
#include "chrome/browser/history/history.h"
+#include "chrome/browser/sync/profile_sync_service_harness.h"
#include "chrome/common/notification_registrar.h"
class DictionaryValue;
@@ -612,6 +614,36 @@ class TestingAutomationProvider : public AutomationProvider,
DictionaryValue* args,
IPC::Message* reply_message);
+ // Signs in to sync using the given username and password.
+ // Uses the JSON interface for input/output.
+ void SignInToSync(Browser* browser,
+ DictionaryValue* args,
+ IPC::Message* reply_message);
+
+ // Returns info about sync.
+ // Uses the JSON interface for input/output.
+ void GetSyncInfo(Browser* browser,
+ DictionaryValue* args,
+ IPC::Message* reply_message);
+
+ // Waits for the ongoing sync cycle to complete.
+ // Uses the JSON interface for input/output.
+ void AwaitSyncCycleCompletion(Browser* browser,
+ DictionaryValue* args,
+ IPC::Message* reply_message);
+
+ // Enables sync for one or more sync datatypes.
+ // Uses the JSON interface for input/output.
+ void EnableSyncForDatatypes(Browser* browser,
+ DictionaryValue* args,
+ IPC::Message* reply_message);
+
+ // Disables sync for one or more sync datatypes.
+ // Uses the JSON interface for input/output.
+ void DisableSyncForDatatypes(Browser* browser,
+ DictionaryValue* args,
+ IPC::Message* reply_message);
+
// Translate DictionaryValues of autofill profiles and credit cards to the
// data structure used in the browser.
// Args:
@@ -702,6 +734,9 @@ class TestingAutomationProvider : public AutomationProvider,
PopupMenuWaiter* popup_menu_waiter_;
#endif // defined(TOOLKIT_VIEWS)
+ // Used to wait on various browser sync events.
+ scoped_ptr<ProfileSyncServiceHarness> sync_waiter_;
+
// Handle for an in-process redirect query. We expect only one redirect query
// at a time (we should have only one caller, and it will block while waiting
// for the results) so there is only one handle. When non-0, indicates a
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698