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

Unified Diff: build/android/pylib/gtest/test_package_apk.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 | « build/android/pylib/forwarder.py ('k') | build/android/pylib/gtest/test_package_exe.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/gtest/test_package_apk.py
diff --git a/build/android/pylib/gtest/test_package_apk.py b/build/android/pylib/gtest/test_package_apk.py
index f4315267ff44394a71e36bab6a261eb02a22b32a..9824c8a211e80066f45316205ffcb45b3e75f677 100644
--- a/build/android/pylib/gtest/test_package_apk.py
+++ b/build/android/pylib/gtest/test_package_apk.py
@@ -16,6 +16,7 @@ from pylib import android_commands
from pylib import constants
from pylib import pexpect
from pylib.device import device_errors
+from pylib.device import intent
from pylib.gtest.test_package import TestPackage
@@ -71,12 +72,12 @@ class TestPackageApk(TestPackage):
return pexpect.spawn('adb', args, timeout=timeout, logfile=logfile)
def _StartActivity(self, device):
- device.old_interface.StartActivity(
- self._package_info.package,
- self._package_info.activity,
+ device.StartActivity(
+ intent.Intent(package=self._package_info.package,
+ activity=self._package_info.activity,
+ action='android.intent.action.MAIN'),
# No wait since the runner waits for FIFO creation anyway.
- wait_for_completion=False,
- action='android.intent.action.MAIN',
+ blocking=False,
force_stop=True)
#override
« no previous file with comments | « build/android/pylib/forwarder.py ('k') | build/android/pylib/gtest/test_package_exe.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698