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

Unified Diff: chrome/test/webdriver/webdriver_automation.h

Issue 8890026: Allow chromedriver to set local state preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years 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
Index: chrome/test/webdriver/webdriver_automation.h
diff --git a/chrome/test/webdriver/webdriver_automation.h b/chrome/test/webdriver/webdriver_automation.h
index 03300e9631fe11a302179909d1f42928b0d017fa..55ca682be66f3a88346263c550ff5e28e9cfb17a 100644
--- a/chrome/test/webdriver/webdriver_automation.h
+++ b/chrome/test/webdriver/webdriver_automation.h
@@ -24,6 +24,7 @@ struct WebKeyEvent;
namespace base {
class DictionaryValue;
class ListValue;
+class Value;
}
namespace webdriver {
@@ -58,6 +59,10 @@ class Automation {
// If false, Chrome will also be terminated if this process is killed or
// shutdown.
bool detach_process;
+
+ // True if Chrome should perform SSL certification revocation checking.
+ // In some test environments, these checks can take a long time.
+ bool cert_revocation_checking;
};
Automation();
@@ -173,6 +178,18 @@ class Automation {
void InstallExtension(const FilePath& path, std::string* extension_id,
Error** error);
+ // Set a local state preference, which is not associated with any profile.
+ // Ownership of |value| is taken by this function.
+ void SetLocalStatePreference(const std::string& pref,
+ base::Value* value,
+ Error** error);
+
+ // Set a user preference, which is associated with the current profile.
+ // Ownership of |value| is taken by this fucntion.
+ void SetPreference(const std::string& pref,
+ base::Value* value,
+ Error** error);
+
private:
AutomationProxy* automation() const;
Error* GetIndicesForTab(int tab_id, int* browser_index, int* tab_index);

Powered by Google App Engine
This is Rietveld 408576698