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

Unified Diff: chrome/test/chromedriver/client/command_executor.py

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: 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
Index: chrome/test/chromedriver/client/command_executor.py
diff --git a/chrome/test/chromedriver/client/command_executor.py b/chrome/test/chromedriver/client/command_executor.py
index 4d3c31458ffbec6bf3f44648528d1ac9774ee90d..c0a67cfb67d452f838ae5043e56b7f28009fca83 100644
--- a/chrome/test/chromedriver/client/command_executor.py
+++ b/chrome/test/chromedriver/client/command_executor.py
@@ -146,6 +146,9 @@ class Command(object):
SET_AUTO_REPORTING = (_Method.POST, '/session/:sessionId/autoreport')
GET_SESSION_LOGS = (_Method.POST, '/logs')
STATUS = (_Method.GET, '/status')
+ GET_EMULATED_NETWORK_CONDITIONS = (_Method.GET, '/session/:sessionId/network_connection')
samuong 2016/06/14 17:45:59 style nitpick: keep lines to within 80 charws
roisinmcl 2016/06/17 18:13:33 Done.
+ SET_EMULATED_NETWORK_CONDITIONS = (_Method.POST, '/session/:sessionId/network_connection')
+ NETWORK_CONDITIONS_DIFFERENT_WEBVIEWS = (_Method.GET, 'session/:sessionId/network_connection')
samuong 2016/06/14 17:45:59 lines 149 and 151 are the same commmand (same http
roisinmcl 2016/06/17 18:13:33 Done.
# Custom Chrome commands.
IS_LOADING = (_Method.GET, '/session/:sessionId/is_loading')

Powered by Google App Engine
This is Rietveld 408576698