blob: 3d0e7cdcc58a15255f60e1b4c005a4f151715aa9 [file] [log] [blame]
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
AUTHOR = 'owenlin@chromium.org, chromeos-video@google.com'
NAME = 'video_VideoDecodeMemoryUsage'
PURPOSE = 'Measure the memory usages of video playback'
SUITE = 'video'
TIME = 'LONG'
TEST_CATEGORY = 'Performance'
TEST_CLASS = 'video'
TEST_TYPE = 'client'
EXPERIMENTAL = 'True'
DOC = """
Measure the memory usage in different cases:
1. Play a video in a loop and check the memory usage.
2. Keep switching between two videos.
3. Repeat opening a tab and play a video in the tab.
"""
ASSETS_BASE = 'http://commondatastorage.googleapis.com/chromiumos-test-assets-public/'
tp101_1080p = ASSETS_BASE + 'tp101/tp101-1920x1080-fc542c0488cc634a05038986adeb1f74.mp4'
tp101_360p = ASSETS_BASE + 'tp101/tp101-640x360-834974c86564d981454189e0fc3f262a.mp4'
testcases = [
['PlayVideo', [tp101_1080p]],
['ChangeVideoSource', [tp101_1080p, tp101_360p]],
['OpenTabPlayVideo', [tp101_1080p]],
]
job.run_test('video_VideoDecodeMemoryUsage', testcases=testcases)