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

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

Issue 10945043: [chrome_remote_control] Use monkey patching for stubs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: PyLint Created 8 years, 3 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
« no previous file with comments | « no previous file | tools/chrome_remote_control/chrome_remote_control/android_browser_finder.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/chrome_remote_control/chrome_remote_control/adb_commands.py
diff --git a/tools/chrome_remote_control/chrome_remote_control/adb_commands.py b/tools/chrome_remote_control/chrome_remote_control/adb_commands.py
index 00d78047f101ccef8eb2f2bc733078694546ae80..f1b532e61517afe506d5af5759671817817642e7 100644
--- a/tools/chrome_remote_control/chrome_remote_control/adb_commands.py
+++ b/tools/chrome_remote_control/chrome_remote_control/adb_commands.py
@@ -16,28 +16,27 @@ sys.path.append(
os.path.join(os.path.dirname(__file__),
'../../../build/android')))
try:
- from pylib import ( # pylint: disable=F0401
- android_commands as real_android_commands)
+ from pylib import android_commands # pylint: disable=F0401
from pylib import forwarder # pylint: disable=F0401
from pylib import valgrind_tools # pylint: disable=F0401
except Exception:
real_android_commands = None
def IsAndroidSupported():
- return real_android_commands != None
+ return android_commands != None
def GetAttachedDevices():
"""Returns a list of attached, online android devices.
If a preferred device has been set with ANDROID_SERIAL, it will be first in
the returned list."""
- return real_android_commands.GetAttachedDevices()
+ return android_commands.GetAttachedDevices()
-class ADBCommands(object):
+class AdbCommands(object):
"""A thin wrapper around ADB"""
def __init__(self, device):
- self._adb = real_android_commands.AndroidCommands(device)
+ self._adb = android_commands.AndroidCommands(device)
def Adb(self):
return self._adb
« no previous file with comments | « no previous file | tools/chrome_remote_control/chrome_remote_control/android_browser_finder.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698