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

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

Issue 1282563003: [Android] Convert RestartAdbd to DeviceUtils again. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add device test Created 5 years, 4 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 | « build/android/pylib/device/device_utils.py ('k') | build/android/pylib/device/device_utils_test.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_device_test.py
diff --git a/build/android/pylib/device/device_utils_device_test.py b/build/android/pylib/device/device_utils_device_test.py
index daae2b65fbf33d2aeda673d86e40e2caf330d1ec..2f667bf8b05d12941c5ec0c935a0ae261a3c7574 100755
--- a/build/android/pylib/device/device_utils_device_test.py
+++ b/build/android/pylib/device/device_utils_device_test.py
@@ -207,5 +207,14 @@ class DeviceUtilsPushDeleteFilesTest(unittest.TestCase):
self.device.RunShellCommand(['rm', '-rf', _DEVICE_DIR])
cmd_helper.RunCmd(['rm', '-rf', host_tmp_dir])
+ def testRestartAdbd(self):
+ old_adbd_pid = self.device.RunShellCommand(
+ ['ps', '|', 'grep', 'adbd'])[1].split()[1]
+ self.device.RestartAdbd()
+ new_adbd_pid = self.device.RunShellCommand(
+ ['ps', '|', 'grep', 'adbd'])[1].split()[1]
+ self.assertNotEqual(old_adbd_pid, new_adbd_pid)
+
+
if __name__ == '__main__':
unittest.main()
« no previous file with comments | « build/android/pylib/device/device_utils.py ('k') | build/android/pylib/device/device_utils_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698