# Copyright 2013 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 measurements import media
from telemetry import test


class Media(test.Test):
  """Obtains media metrics for key user scenarios."""
  test = media.Media
  page_set = 'page_sets/tough_video_cases.json'

@@ -214,17 +214,16 @@
 t test%0A%0A
-%0A
 class Me
@@ -313,16 +313,16 @@
 a.Media%0A
-
   page_s
@@ -361,8 +361,492 @@
 s.json'%0A
+%0Aclass MediaAndroid(test.Test):%0A  %22%22%22Obtains media metrics for key user scenarios on Android.%22%22%22%0A  test = media.Media%0A  tag = 'android'%0A  page_set = 'page_sets/tough_video_cases.json'%0A  # Exclude crowd* media files (50fps 2160p).%0A  options = %7B%0A      'page_filter_exclude': '.*crowd.*'%0A  %7D%0A%0A  def CustomizeBrowserOptions(self, options):%0A    # Needed to run media actions in JS in Android.%0A    options.AppendExtraBrowserArgs(%0A        '--disable-gesture-requirement-for-media-playback')%0A

add media perf tests for Android