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

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

Issue 711113002: Add option to specify ADB binary in test runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/pylib/device/adb_wrapper.py ('k') | build/android/test_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/device/device_utils_test.py
diff --git a/build/android/pylib/device/device_utils_test.py b/build/android/pylib/device/device_utils_test.py
index 1fb973bd212f6dcf1ce8cb9c441f1cb09fe4155f..2d8500d2e39ab5bf9bd5b2a91626b7176cabdb3d 100755
--- a/build/android/pylib/device/device_utils_test.py
+++ b/build/android/pylib/device/device_utils_test.py
@@ -215,9 +215,14 @@ class DeviceUtilsOldImplTest(unittest.TestCase):
return type(self).AndroidCommandsCalls(self, cmd_ret, comp)
def setUp(self):
+ self._getadbpath_patch = mock.patch('pylib.constants.GetAdbPath',
jbudorick 2014/11/19 20:52:14 nit: self._get_adb_path_patch
+ mock.Mock(return_value='adb'))
+ self._getadbpath_patch.start()
self.device = device_utils.DeviceUtils(
'0123456789abcdef', default_timeout=1, default_retries=0)
+ def tearDown(self):
+ self._getadbpath_patch.stop()
class DeviceUtilsNewImplTest(mock_calls.TestCase):
« no previous file with comments | « build/android/pylib/device/adb_wrapper.py ('k') | build/android/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698