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

Unified Diff: chrome/test/chromedriver/chrome/automation_extension.cc

Issue 114403005: Adding a LaunchApp command to Chromedriver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing additional comments Created 6 years, 11 months 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/chromedriver/chrome/automation_extension.cc
diff --git a/chrome/test/chromedriver/chrome/automation_extension.cc b/chrome/test/chromedriver/chrome/automation_extension.cc
index 1a120a182233919eb7c83f9d288133c8961ce94e..9318930006ed3bda4b9869fcbea5dba99f66e822 100644
--- a/chrome/test/chromedriver/chrome/automation_extension.cc
+++ b/chrome/test/chromedriver/chrome/automation_extension.cc
@@ -103,3 +103,14 @@ Status AutomationExtension::UpdateWindow(
base::TimeDelta::FromSeconds(10),
&result);
}
+
+Status AutomationExtension::LaunchApp(std::string id) {
+ base::ListValue args;
+ args.AppendString(id);
+ scoped_ptr<base::Value> result;
+ return web_view_->CallAsyncFunction(std::string(),
+ "launchApp",
+ args,
+ base::TimeDelta::FromSeconds(10),
+ &result);
+}
« no previous file with comments | « chrome/test/chromedriver/chrome/automation_extension.h ('k') | chrome/test/chromedriver/extension/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698