1 # Copyright (c) 2012 The Chromium OS 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 5 AUTHOR = "Chrome OS Team" 6 NAME = "power_VideoSuspend.multiformat" 7 #TODO: move back to suite:kernel_daily_regression when test stable. 8 ATTRIBUTES = "suite:experimental" 9 TIME = "MEDIUM" 10 TEST_CATEGORY = "Functional" 11 TEST_CLASS = "power" 12 TEST_TYPE = "client" 13 14 DOC = """ 15 Suspends the system with a video playing. 16 17 This version of the test plays multiple formats (mp4, webm, ogg). 18 """ 19 20 videos = [ 21 'big_buck_bunny/big_buck_bunny_trailer_400p.mp4', 22 'big_buck_bunny/big_buck_bunny_trailer_400p.ogg', 23 'big_buck_bunny/big_buck_bunny_trailer_400p.webm', 24 'big_buck_bunny/big_buck_bunny_trailer_1080p.mp4', 25 'big_buck_bunny/big_buck_bunny_trailer_1080p.ogg', 26 'big_buck_bunny/big_buck_bunny_trailer_1080p.webm', 27 ] 28 29 base_url = 'http://commondatastorage.googleapis.com/chromeos-test-public/' 30 video_urls = [base_url + video for video in videos] 31 32 job.add_sysinfo_logfile('/sys/kernel/debug/suspend_stats', on_every_test=True) 33 job.run_test('power_VideoSuspend', video_urls=video_urls, tag='multiformat') 34