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

Unified Diff: chrome/test/chromedriver/server/http_handler.cc

Issue 2743013002: Add webdriver endpoint to send custom debugger commands (Closed)
Patch Set: Adding e2e test Created 3 years, 8 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/server/http_handler.cc
diff --git a/chrome/test/chromedriver/server/http_handler.cc b/chrome/test/chromedriver/server/http_handler.cc
index af0c443b22fb6542d07084f487a7f7092284518c..4be19a20a716fd7002e469cd713174aa5eca77db 100644
--- a/chrome/test/chromedriver/server/http_handler.cc
+++ b/chrome/test/chromedriver/server/http_handler.cc
@@ -611,6 +611,15 @@ HttpHandler::HttpHandler(
"session/:sessionId/touch/pinch",
WrapToCommand("TouchPinch",
base::Bind(&ExecuteTouchPinch))),
+ CommandMapping(kPost,
+ "session/:sessionId/chromium/sendcommand",
johnchen 2017/04/26 05:17:47 It seems to be more common for the words to be sep
em 2017/04/27 05:02:09 Done.
+ WrapToCommand("ExecuteSendCommand",
johnchen 2017/04/26 05:17:47 By convention, the string should be "SendCommand",
em 2017/04/27 05:02:09 Done.
+ base::Bind(&ExecuteSendCommand))),
+ CommandMapping(
+ kPost,
+ "session/:sessionId/chromium/sendcommandandgetresult",
+ WrapToCommand("ExecuteSendCommandAndGetResult",
+ base::Bind(&ExecuteSendCommandAndGetResult))),
};
command_map_.reset(
new CommandMap(commands, commands + arraysize(commands)));

Powered by Google App Engine
This is Rietveld 408576698