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

Unified Diff: telemetry/telemetry/internal/backends/android_app_backend.py

Issue 2398683006: [telemetry] Install PushAppsToBackground apk (Closed)
Patch Set: add method to test fake Created 4 years, 2 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
Index: telemetry/telemetry/internal/backends/android_app_backend.py
diff --git a/telemetry/telemetry/internal/backends/android_app_backend.py b/telemetry/telemetry/internal/backends/android_app_backend.py
index 4fc78d58ebf20c94879bab04e574abf3765b98c4..99be759a5297c2b0a0d2e4aacaa843a352c3a85a 100644
--- a/telemetry/telemetry/internal/backends/android_app_backend.py
+++ b/telemetry/telemetry/internal/backends/android_app_backend.py
@@ -85,14 +85,14 @@ class AndroidAppBackend(app_backend.AppBackend):
blocking=True)
def Background(self):
- # Launch clock app, pushing the app to the background.
- # TODO(crbug.com/586148): The clock app isn't necessarily on every phone,
- # replace this with the PushAppsToBackground instead.
+ package = 'org.chromium.push_apps_to_background'
+ activity = package + '.PushAppsToBackgroundActivity'
self.device.StartActivity(
- intent.Intent(package='com.google.android.deskclock',
- activity='com.android.deskclock.DeskClock',
- action=None,
- flags=[intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED]),
+ intent.Intent(
+ package=package,
+ activity=activity,
+ action=None,
+ flags=[intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED]),
blocking=True)
def Close(self):
« no previous file with comments | « telemetry/telemetry/core/platform.py ('k') | telemetry/telemetry/internal/backends/chrome/android_browser_backend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698