1 # Copyright (c) 2013 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 = 'owenlin (a] chromium.org, chromeos-video (a] google.com' 6 NAME = 'video_VideoDecodeMemoryUsage.h264' 7 PURPOSE = 'Measure the memory usages of video playback' 8 ATTRIBUTES = "suite:video" 9 SUITE = 'video' 10 TIME = 'LONG' 11 TEST_CATEGORY = 'Performance' 12 TEST_CLASS = 'video' 13 TEST_TYPE = 'client' 14 15 DOC = """ 16 Measure the memory usage in different cases: 17 1. Play a video in a loop and check the memory usage. 18 2. Keep switching between two videos. 19 3. Repeat opening a tab and play a video in the tab. 20 """ 21 22 ASSETS_BASE = 'http://commondatastorage.googleapis.com/chromiumos-test-assets-public/' 23 tp101_1080p = ASSETS_BASE + 'tp101/tp101-1920x1080-fc542c0488cc634a05038986adeb1f74.mp4' 24 tp101_360p = ASSETS_BASE + 'tp101/tp101-640x360-834974c86564d981454189e0fc3f262a.mp4' 25 26 testcases = [ 27 ['PlayVideo', [tp101_1080p]], 28 ['ChangeVideoSource', [tp101_1080p, tp101_360p]], 29 ['OpenTabPlayVideo', [tp101_1080p]], 30 ] 31 32 job.run_test('video_VideoDecodeMemoryUsage', testcases=testcases) 33