Commit 0faea2dd authored by Julian Kung's avatar Julian Kung Committed by Commit Bot

Deleted unused function SendCommand in python wrapper

The function SendCommand was never used in run_py_tests.py and would
error whenever called due to passing bad params. Since the function is
not used, rather than fixing the function this changelist deletes it

R=johnchen@chromium.org

Change-Id: I161c965f21f5150976305ca78be7c734178b6fc6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1678884Reviewed-by: default avatarJohn Chen <johnchen@chromium.org>
Commit-Queue: Julian Kung <juliankung@google.com>
Cr-Commit-Position: refs/heads/master@{#672650}
parent e8151bac
...@@ -605,10 +605,6 @@ class ChromeDriver(object): ...@@ -605,10 +605,6 @@ class ChromeDriver(object):
params = {'parameters': {'type': connection_type}} params = {'parameters': {'type': connection_type}}
return self.ExecuteCommand(Command.SET_NETWORK_CONNECTION, params) return self.ExecuteCommand(Command.SET_NETWORK_CONNECTION, params)
def SendCommand(self, cmd, cmd_params):
params = {'parameters': {'cmd': cmd, 'params': cmd_params}};
return self.ExecuteCommand(Command.SEND_COMMAND, params)
def SendCommandAndGetResult(self, cmd, cmd_params): def SendCommandAndGetResult(self, cmd, cmd_params):
params = {'cmd': cmd, 'params': cmd_params}; params = {'cmd': cmd, 'params': cmd_params};
return self.ExecuteCommand(Command.SEND_COMMAND_AND_GET_RESULT, params) return self.ExecuteCommand(Command.SEND_COMMAND_AND_GET_RESULT, params)
......
...@@ -171,8 +171,6 @@ class Command(object): ...@@ -171,8 +171,6 @@ class Command(object):
STATUS = (_Method.GET, '/status') STATUS = (_Method.GET, '/status')
SET_NETWORK_CONNECTION = ( SET_NETWORK_CONNECTION = (
_Method.POST, '/session/:sessionId/network_connection') _Method.POST, '/session/:sessionId/network_connection')
SEND_COMMAND = (
_Method.POST, '/session/:sessionId/chromium/send_command')
SEND_COMMAND_AND_GET_RESULT = ( SEND_COMMAND_AND_GET_RESULT = (
_Method.POST, '/session/:sessionId/chromium/send_command_and_get_result') _Method.POST, '/session/:sessionId/chromium/send_command_and_get_result')
GENERATE_TEST_REPORT = ( GENERATE_TEST_REPORT = (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment