1# Copyright 2015 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 5AUTHOR = 'Chrome OS Project, chromeos-video@google.com' 6NAME = 'video_VideoDecodeMemoryUsage.vp9' 7PURPOSE = 'Measure the memory usages of video playback' 8ATTRIBUTES = "suite:crosbolt_perf_perbuild" 9TIME = 'LONG' 10TEST_CATEGORY = 'Performance' 11TEST_CLASS = 'video' 12TEST_TYPE = 'client' 13 14DOC = """ 15Measure the memory usage in different cases: 16 1. Play a video in a loop and check the memory usage. 17 2. Keep switching between two videos. 18 3. Repeat opening a tab and play a video in the tab. 19""" 20 21ASSETS_BASE = 'http://commondatastorage.googleapis.com/chromiumos-test-assets-public/Shaka-Dash/' 22tp101_1080p = ASSETS_BASE + '1080.webm' 23tp101_360p = ASSETS_BASE + '360.webm' 24 25testcases = [ 26 ['PlayVideo', [tp101_1080p]], 27 ['ChangeVideoSource', [tp101_1080p, tp101_360p]], 28 ['OpenTabPlayVideo', [tp101_1080p]], 29] 30 31job.run_test('video_VideoDecodeMemoryUsage', testcases=testcases, tag='vp9') 32