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

Unified Diff: chrome/test/media_router/telemetry/benchmarks/pagesets/media_router_pages.py

Issue 1843063004: Add new Telemetry tests to get CPU and memory usage for idle and flinging two test scenarios. Mirro… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN build failure Created 4 years, 8 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: chrome/test/media_router/telemetry/benchmarks/pagesets/media_router_pages.py
diff --git a/chrome/test/media_router/telemetry/benchmarks/pagesets/media_router_pages.py b/chrome/test/media_router/telemetry/benchmarks/pagesets/media_router_pages.py
deleted file mode 100644
index e1b89e53c41f2bda51c7e1f924ef5580f6d346fc..0000000000000000000000000000000000000000
--- a/chrome/test/media_router/telemetry/benchmarks/pagesets/media_router_pages.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright 2016 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-from telemetry import page
-from telemetry import story
-from telemetry.page import shared_page_state
-from telemetry.core import exceptions
-
-
-class CastPage(page.Page):
-
- def __init__(self, page_set):
- super(CastPage, self).__init__(
- url='file://basic_test.html',
- page_set=page_set)
-
- def RunPageInteractions(self, action_runner):
- with action_runner.CreateInteraction('LaunchDialog'):
- # Wait for 5s after Chrome is opened in order to get consistent results.
- action_runner.Wait(5)
- action_runner.TapElement(selector='#start_session_button')
- action_runner.Wait(5)
- for tab in action_runner.tab.browser.tabs:
- # Close media router dialog
- if tab.url == 'chrome://media-router/':
- try:
- tab.ExecuteJavaScript(
- 'window.document.getElementById("media-router-container").' +
- 'shadowRoot.getElementById("container-header").shadowRoot.' +
- 'getElementById("close-button").click();')
- except exceptions.DevtoolsTargetCrashException:
- # Ignore the crash exception, this exception is caused by the js
- # code which closes the dialog, it is expected.
- pass
-
-
-class MediaRouterPageSet(story.StorySet):
-
- def __init__(self):
- super(MediaRouterPageSet, self).__init__(
- cloud_storage_bucket=story.PARTNER_BUCKET)
- self.AddStory(CastPage(self))

Powered by Google App Engine
This is Rietveld 408576698