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

Unified Diff: chrome/test/webdriver/webdriver_session.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
« no previous file with comments | « chrome/test/webdriver/webdriver_capabilities_parser.cc ('k') | chrome/test/webdriver/webdriver_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/webdriver_session.h
diff --git a/chrome/test/webdriver/webdriver_session.h b/chrome/test/webdriver/webdriver_session.h
index 8ea4a483a21ecec102b5d99c9f9a3d4f2210832b..d2ea02fcdce3f50ed6ccf8bbdd5715a806b6c81b 100644
--- a/chrome/test/webdriver/webdriver_session.h
+++ b/chrome/test/webdriver/webdriver_session.h
@@ -62,6 +62,16 @@ class Session {
// True if the session should not wait for page loads and navigate
// asynchronously.
bool load_async;
+
+ // By default, ChromeDriver configures Chrome in such a way as convenient
+ // for website testing. E.g., it configures Chrome so that sites are allowed
+ // to use the geolocation API without requesting the user's consent.
+ // If this is set to true, ChromeDriver will not modify Chrome's default
+ // behavior.
+ bool no_website_testing_defaults;
+
+ // A list of extensions to install on startup.
+ std::vector<FilePath> extensions;
};
// Adds this |Session| to the |SessionManager|. The session manages its own
@@ -330,6 +340,13 @@ class Session {
Error* UninstallExtension(const std::string& extension_id);
+ // Sets the preference to the given value. This function takes ownership
+ // of |value|. If the preference is a user preference (instead of local
+ // state preference) |is_user_pref| should be true.
+ Error* SetPreference(const std::string& pref,
+ bool is_user_pref,
+ base::Value* value);
+
const std::string& id() const;
const FrameId& current_target() const;
@@ -398,6 +415,8 @@ class Session {
bool center,
bool verify_clickable_at_middle,
Point* location);
+ Error* PostBrowserStartInit();
+ Error* InitForWebsiteTesting();
const std::string id_;
FrameId current_target_;
« no previous file with comments | « chrome/test/webdriver/webdriver_capabilities_parser.cc ('k') | chrome/test/webdriver/webdriver_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698