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

Unified Diff: devil/devil/android/forwarder.py

Issue 2587153002: [devil] Add a constant for forwarder device dynamic port allocation. (Closed)
Patch Set: Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: devil/devil/android/forwarder.py
diff --git a/devil/devil/android/forwarder.py b/devil/devil/android/forwarder.py
index 7b0f4da2dcd79c51215af134b12cab4929978f75..b5a2bf14d9b44b22860fcc812e7638f806a03c08 100644
--- a/devil/devil/android/forwarder.py
+++ b/devil/devil/android/forwarder.py
@@ -18,6 +18,11 @@ from devil.utils import cmd_helper
logger = logging.getLogger(__name__)
+# If passed as the device port, this will tell the forwarder to allocate
+# a dynamic port on the device. The actual port can then be retrieved with
+# Forwarder.DevicePortForHostPort.
+DYNAMIC_DEVICE_PORT = 0
+
def _GetProcessStartTime(pid):
return psutil.Process(pid).create_time
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698