diff options
author | herbertxue <herbertxue@google.com> | 2021-05-03 11:47:09 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-05-03 11:47:09 +0000 |
commit | c68bb2f30e90ca4c524e41b1c651a6692c657dc6 (patch) | |
tree | bdb508aac6479f1d93422d8cb93f4490d8c00952 | |
parent | 614987fec1e8e2656db9b99d0a3cb09776dbfefe (diff) | |
parent | 32f7c587fea09c33cbf8f4e227317e46e0b0c958 (diff) | |
download | acloud-c68bb2f30e90ca4c524e41b1c651a6692c657dc6.tar.gz |
Remove the TCP limit from webrtc brower link. am: 32f7c587fe
Original change: https://android-review.googlesource.com/c/platform/tools/acloud/+/1693385
Change-Id: I399323bb70bd4650fb1152472a828a1e77cfe213
-rwxr-xr-x | internal/lib/utils.py | 2 | ||||
-rw-r--r-- | internal/lib/utils_test.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/internal/lib/utils.py b/internal/lib/utils.py index 0179f18b..819aba4c 100755 --- a/internal/lib/utils.py +++ b/internal/lib/utils.py @@ -96,7 +96,7 @@ _DEFAULT_DISPLAY_SCALE = 1.0 _DIST_DIR = "DIST_DIR" # For webrtc -_WEBRTC_URL = "https://%(webrtc_ip)s:%(webrtc_port)d/?use_tcp=true" +_WEBRTC_URL = "https://%(webrtc_ip)s:%(webrtc_port)d" _CONFIRM_CONTINUE = ("In order to display the screen to the AVD, we'll need to " "install a vnc client (ssvnc). \nWould you like acloud to " diff --git a/internal/lib/utils_test.py b/internal/lib/utils_test.py index c28f8320..45bb1777 100644 --- a/internal/lib/utils_test.py +++ b/internal/lib/utils_test.py @@ -481,7 +481,7 @@ class UtilsTest(driver_test_lib.BaseDriverTest): "ip": "192.168.1.1",},],} utils.LaunchBrowserFromReport(fake_report) - webbrowser.open_new_tab.assert_called_once_with("https://localhost:8443/?use_tcp=true") + webbrowser.open_new_tab.assert_called_once_with("https://localhost:8443") webbrowser.open_new_tab.call_count = 0 # test local instance @@ -489,7 +489,7 @@ class UtilsTest(driver_test_lib.BaseDriverTest): "devices": [{"instance_name": "local-instance1", "ip": "127.0.0.1:6250",},],} utils.LaunchBrowserFromReport(fake_report) - webbrowser.open_new_tab.assert_called_once_with("https://localhost:8443/?use_tcp=true") + webbrowser.open_new_tab.assert_called_once_with("https://localhost:8443") webbrowser.open_new_tab.call_count = 0 # verify terminal can't support launch webbrowser. |