cc: Make a FakeResourceProvider and use it in tests to construct.
[chromium-blink-merge.git] / tools / perf / benchmarks / polymer_load.py
blob929a4ed2581dd5fb03def62e94b91ffebc0468d3
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 from core import perf_benchmark
7 from measurements import polymer_load
8 from telemetry import benchmark
9 import page_sets
12 @benchmark.Enabled('android')
13 class PolymerLoadPica(perf_benchmark.PerfBenchmark):
14 """Measures time to polymer-ready for Pica (News Reader)."""
15 test = polymer_load.PolymerLoadMeasurement
16 page_set = page_sets.PicaPageSet
18 @classmethod
19 def Name(cls):
20 return 'polymer_load.pica'
23 # There is something weird about this test (or a test that precedes it)
24 # that causes it to fail in telemetry_perf_unittests when it is not run
25 # as the first of the benchmark_smoke_unittest test cases.
26 # See crbug.com/428207.
27 #@benchmark.Enabled('android')
28 @benchmark.Disabled
29 class PolymerLoadTopeka(perf_benchmark.PerfBenchmark):
30 """Measures time to polymer-ready for Topeka (Quiz App)."""
31 test = polymer_load.PolymerLoadMeasurement
32 page_set = page_sets.TopekaPageSet
33 @classmethod
34 def Name(cls):
35 return 'polymer_load.topeka'