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

Unified Diff: tools/android/adb_profile_chrome/controllers_unittest.py

Issue 338353004: [Android] Switch KillAll, StartActivity, and BroadcastIntent to DeviceUtils. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: appeasing windows Created 6 years, 6 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 | « tools/android/adb_profile_chrome/chrome_controller.py ('k') | tools/android/mempressure.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/adb_profile_chrome/controllers_unittest.py
diff --git a/tools/android/adb_profile_chrome/controllers_unittest.py b/tools/android/adb_profile_chrome/controllers_unittest.py
index 6702c389492ba8febaa973eb62ab26aca575ec93..5df7bea3aafd6a48194fca39e0d431a3c84fbb10 100644
--- a/tools/android/adb_profile_chrome/controllers_unittest.py
+++ b/tools/android/adb_profile_chrome/controllers_unittest.py
@@ -17,7 +17,7 @@ class BaseControllerTest(unittest.TestCase):
self.package_info = profiler.GetSupportedBrowsers()[self.browser]
self.device = device_utils.DeviceUtils(devices[0])
- adb = android_commands.AndroidCommands(devices[0])
- adb.StartActivity(self.package_info.package,
- self.package_info.activity,
- wait_for_completion=True)
+ self.device.StartActivity(
+ intent.Intent(activity=self.package_info.activity,
+ package=self.package_info.package),
+ blocking=True)
« no previous file with comments | « tools/android/adb_profile_chrome/chrome_controller.py ('k') | tools/android/mempressure.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698