Lines Matching defs:Capabilities
5 #include "chrome/test/chromedriver/capabilities.h"
26 typedef base::Callback<Status(const base::Value&, Capabilities*)> Parser;
31 Capabilities* capabilities) {
39 Capabilities* capabilities) {
51 Capabilities* capabilities) {
61 Capabilities* capabilities) {
72 Capabilities* capabilities) {
77 Status IgnoreCapability(const base::Value& option, Capabilities* capabilities) {
81 Status ParseLogPath(const base::Value& option, Capabilities* capabilities) {
82 if (!option.GetAsString(&capabilities->log_path))
88 Capabilities* capabilities) {
96 capabilities->switches.SetUnparsedSwitch(arg_string);
101 Status ParseExtensions(const base::Value& option, Capabilities* capabilities) {
111 capabilities->extensions.push_back(extension);
116 Status ParseProxy(const base::Value& option, Capabilities* capabilities) {
125 capabilities->switches.SetSwitch("no-proxy-server");
132 capabilities->switches.SetSwitch("proxy-pac-url", proxy_pac_url);
134 capabilities->switches.SetSwitch("proxy-auto-detect");
170 "proxy capabilities were found");
173 capabilities->switches.SetSwitch("proxy-server", proxy_servers);
175 capabilities->switches.SetSwitch("proxy-bypass-list",
185 Capabilities* capabilities) {
195 capabilities->exclude_switches.insert(switch_name);
201 Capabilities* capabilities) {
216 capabilities->debugger_address = NetAddress(values[0], port);
221 Capabilities* capabilities) {
235 capabilities->logging_prefs.insert(std::make_pair(type, level));
242 Capabilities* capabilities) {
251 // Ignore 'args', 'binary' and 'extensions' capabilities by default, since the
258 base::Bind(&ParseString, &capabilities->android_activity);
260 base::Bind(&ParseString, &capabilities->android_device_serial);
262 base::Bind(&ParseString, &capabilities->android_package);
264 base::Bind(&ParseString, &capabilities->android_process);
266 base::Bind(&ParseBoolean, &capabilities->android_use_running_app);
272 parser_map["binary"] = base::Bind(&ParseFilePath, &capabilities->binary);
273 parser_map["detach"] = base::Bind(&ParseBoolean, &capabilities->detach);
277 &ParseBoolean, &capabilities->force_devtools_screenshot);
280 base::Bind(&ParseDict, &capabilities->local_state);
283 base::Bind(&ParseString, &capabilities->minidump_path);
284 parser_map["prefs"] = base::Bind(&ParseDict, &capabilities->prefs);
293 Status status = parser_map[it.key()].Run(it.value(), capabilities);
409 Capabilities::Capabilities()
414 Capabilities::~Capabilities() {}
416 bool Capabilities::IsAndroid() const {
420 bool Capabilities::IsExistingBrowser() const {
424 Status Capabilities::Parse(const base::DictionaryValue& desired_caps) {