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.
4
5from telemetry import benchmark
6from measurements import smoothness
7import page_sets
8
9
10class SchedulerToughSchedulingCases(benchmark.Benchmark):
11  """Measures rendering statistics while interacting with pages that have
12  challenging scheduling properties.
13
14  https://docs.google.com/a/chromium.org/document/d/
15      17yhE5Po9By0sCdM1yZT3LiUECaUr_94rQt9j-4tOQIM/view"""
16  test = smoothness.Smoothness
17  page_set = page_sets.ToughSchedulingCasesPageSet
18
19
20# Pepper plugin is not supported on android.
21@benchmark.Disabled('android', 'win', 'mac')  # crbug.com/384733
22class SchedulerToughPepperCases(benchmark.Benchmark):
23  """Measures rendering statistics while interacting with pages that have
24  pepper plugins"""
25  test = smoothness.Smoothness
26  page_set = page_sets.ToughPepperCasesPageSet
27
28  def CustomizeBrowserOptions(self, options):
29    # This is needed for testing pepper plugin.
30    options.AppendExtraBrowserArgs('--enable-pepper-testing')
31