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

Unified Diff: chrome/test/media_router/telemetry/benchmarks/media_router_benchmark.py

Issue 1931553004: Stop the existing session if it exists before start a new session and add mirroring scenario for cp… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/media_router_benchmark.py
diff --git a/chrome/test/media_router/telemetry/benchmarks/media_router_benchmark.py b/chrome/test/media_router/telemetry/benchmarks/media_router_benchmark.py
index e8d1b692d26933020caf4e216223f81de4860a7b..1dbcb698812eb7b5f59ad08ed17f35aa7026ed8d 100644
--- a/chrome/test/media_router/telemetry/benchmarks/media_router_benchmark.py
+++ b/chrome/test/media_router/telemetry/benchmarks/media_router_benchmark.py
@@ -86,3 +86,30 @@ class CPUMemoryCastBenckmark(_BaseCastBenchmark):
@classmethod
def Name(cls):
return 'media_router.cpu_memory'
+
+
+class CPUMemoryBenckmark(perf_benchmark.PerfBenchmark):
+ options = {'page_repeat': 1}
+
+ page_set = media_router_perf_pages.CPUMemoryPageSet
+
+ def SetExtraBrowserOptions(self, options):
+ options.clear_sytem_cache_for_browser_and_profile_on_start = True
+ # This flag is required to enable the communication between the page and
+ # the test extension.
+ options.disable_background_networking = False
+
+ # TODO: find a better way to find extension location.
+ options.AppendExtraBrowserArgs([
+ '--load-extension=' +
+ os.path.join(path_util.GetChromiumSrcDir(), 'out',
+ 'Release', 'media_router', 'test_extension'),
+ '--enable-stats-collection-bindings'
+ ])
+
+ def CreatePageTest(self, options):
+ return media_router_measurements.MediaRouterCPUMemoryTest()
+
+ @classmethod
+ def Name(cls):
+ return 'media_router.cpu_memory.no_media_router'

Powered by Google App Engine
This is Rietveld 408576698