aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorherbertxue <herbertxue@google.com>2021-05-03 12:03:53 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-05-03 12:03:53 +0000
commita1c43d569bbc9d20c9fa8e86ef626042d830d5ec (patch)
treebdb508aac6479f1d93422d8cb93f4490d8c00952
parenta90e03fd33ce6ed21a314ac4ea827775cb0b528c (diff)
parentc68bb2f30e90ca4c524e41b1c651a6692c657dc6 (diff)
downloadacloud-a1c43d569bbc9d20c9fa8e86ef626042d830d5ec.tar.gz
Remove the TCP limit from webrtc brower link. am: 32f7c587fe am: c68bb2f30e
Original change: https://android-review.googlesource.com/c/platform/tools/acloud/+/1693385 Change-Id: I06235d4b0d39db449ff1712760450239d5f25919
-rwxr-xr-xinternal/lib/utils.py2
-rw-r--r--internal/lib/utils_test.py4
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.