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

Unified Diff: tools/perf/page_sets/memory_top_10_mobile.py

Issue 2652343004: Use new Background method in memory perf test. (Closed)
Patch Set: Created 3 years, 11 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/perf/benchmarks/memory.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/memory_top_10_mobile.py
diff --git a/tools/perf/page_sets/memory_top_10_mobile.py b/tools/perf/page_sets/memory_top_10_mobile.py
index 4a56c8ee7547b3e11b66255c3a33969417a21fcf..ceab90158134410b94623785743c4b78718b9cdb 100644
--- a/tools/perf/page_sets/memory_top_10_mobile.py
+++ b/tools/perf/page_sets/memory_top_10_mobile.py
@@ -8,7 +8,6 @@ from telemetry.page import page as page_module
from telemetry.page import shared_page_state
from telemetry import story
-from devil.android.sdk import intent # pylint: disable=import-error
from devil.android.sdk import keyevent # pylint: disable=import-error
from page_sets import top_10_mobile
@@ -51,17 +50,15 @@ class BackgroundPage(MemoryMeasurementPage):
action_runner.tab.WaitForDocumentReadyStateToBeComplete()
# Launch clock app, pushing Chrome to the background.
- android_platform = action_runner.tab.browser.platform
- android_platform.LaunchAndroidApplication(
- intent.Intent(package='com.google.android.deskclock',
- activity='com.android.deskclock.DeskClock'),
- app_has_webviews=False)
+ android_browser = action_runner.tab.browser
+ android_browser.Background()
# Take measurement.
action_runner.MeasureMemory(self.story_set.DETERMINISTIC_MODE)
# Go back to Chrome.
- android_platform.android_action_runner.InputKeyEvent(keyevent.KEYCODE_BACK)
+ android_browser.platform.android_action_runner.InputKeyEvent(
+ keyevent.KEYCODE_BACK)
class MemoryTop10Mobile(story.StorySet):
« no previous file with comments | « tools/perf/benchmarks/memory.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698