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

Unified Diff: build/android/pylib/device/adb_wrapper.py

Issue 221823011: [Android] Change object types from AndroidCommands to DeviceUtils in build/android/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Frank's comments. Created 6 years, 9 months 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
Index: build/android/pylib/device/adb_wrapper.py
diff --git a/build/android/pylib/device/adb_wrapper.py b/build/android/pylib/device/adb_wrapper.py
index c455ec4c11a95ef165affdf992e7cc214a9c3391..440a02c33564555c52654f904efb57fea97df243 100644
--- a/build/android/pylib/device/adb_wrapper.py
+++ b/build/android/pylib/device/adb_wrapper.py
@@ -39,6 +39,10 @@ class CommandTimeoutError(BaseError):
pass
+class DeviceUnreachableError(BaseError):
+ """Exception for device unreachable failures."""
+ pass
+
def _VerifyLocalFileExists(path):
"""Verifies a local file exists.
@@ -152,7 +156,7 @@ class AdbWrapper(object):
output = cls._AdbCmd(['devices'], timeout, retries)
lines = [line.split() for line in output.split('\n')]
return [AdbWrapper(line[0]) for line in lines
- if len(line) == 2 and line[1] == 'device']
+ if len(line) == 2 and line[1] == 'device']
def GetDeviceSerial(self):
"""Gets the device serial number associated with this object.

Powered by Google App Engine
This is Rietveld 408576698