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

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

Issue 2065733002: Add a method to override the network conditions of the ChromeDriver session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved fuction to top of setNetworkConnection Created 4 years, 6 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
« no previous file with comments | « chrome/test/chromedriver/client/command_executor.py ('k') | chrome/test/chromedriver/session_commands.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 189bdb53ca6832b1feef717525b01be9c06c8488..6c0e810823ffaf31109a160613764011ab07ef42 100644
--- a/chrome/test/chromedriver/server/http_handler.cc
+++ b/chrome/test/chromedriver/server/http_handler.cc
@@ -382,6 +382,11 @@ HttpHandler::HttpHandler(
"session/:sessionId/location",
WrapToCommand("SetGeolocation", base::Bind(&ExecuteSetLocation))),
CommandMapping(
+ kPost,
+ "session/:sessionId/network_connection",
+ WrapToCommand("SetNetworkConnection",
+ base::Bind(&ExecuteSetNetworkConnection))),
+ CommandMapping(
kGet,
"session/:sessionId/chromium/network_conditions",
WrapToCommand("GetNetworkConditions",
« no previous file with comments | « chrome/test/chromedriver/client/command_executor.py ('k') | chrome/test/chromedriver/session_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698