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

Unified Diff: tools/telemetry/telemetry/adb_commands.py

Issue 11308344: Telemetry: shard tests on android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments / port allocation Created 8 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 | « build/android/bb_run_sharded_steps.py ('k') | tools/telemetry/telemetry/android_browser_backend.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/adb_commands.py
diff --git a/tools/telemetry/telemetry/adb_commands.py b/tools/telemetry/telemetry/adb_commands.py
index d122aa5dc7bfafb0fe096f4415fd849d9f0d06ae..f30bd7e36205f2433641227a0d3bff1114a6b11e 100644
--- a/tools/telemetry/telemetry/adb_commands.py
+++ b/tools/telemetry/telemetry/adb_commands.py
@@ -19,13 +19,16 @@ try:
from pylib import android_commands # pylint: disable=F0401
from pylib import cmd_helper # pylint: disable=F0401
from pylib import forwarder # pylint: disable=F0401
+ from pylib import ports # pylint: disable=F0401
from pylib import valgrind_tools # pylint: disable=F0401
except Exception:
android_commands = None
+
def IsAndroidSupported():
return android_commands != None
+
def GetAttachedDevices():
"""Returns a list of attached, online android devices.
@@ -33,6 +36,15 @@ def GetAttachedDevices():
the returned list."""
return android_commands.GetAttachedDevices()
+
+def AllocateTestServerPort():
+ return ports.AllocateTestServerPort()
+
+
+def ResetTestServerPortAllocation():
+ return ports.ResetTestServerPortAllocation()
+
+
class AdbCommands(object):
"""A thin wrapper around ADB"""
« no previous file with comments | « build/android/bb_run_sharded_steps.py ('k') | tools/telemetry/telemetry/android_browser_backend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698