# Copyright 2015 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 = "Chrome OS Team, chromeos-video@google.com"
NAME = "video_VideoDecodeAccelerator.vp9"
PURPOSE = "Verify Chromium Video Decode Acceleration for VP9 works."
CRITERIA = """
This test will fail if any of the tests in video_decode_accelerator_unittest
fails. Running video_decode_accelerator_unittest is skipped on machines that are
known not to support video decode.
"""
ATTRIBUTES = "suite:bvt-perbuild"
TIME = "SHORT"
TEST_CATEGORY = "Functional"
TEST_CLASS = "video"
TEST_TYPE = "client"
JOB_RETRIES = 2
# Reboot in the lab after the test ends.
DEPENDENCIES = "cleanup-reboot, hw_video_acc_vp9"
RETRIES = 1
BUG_TEMPLATE = {
    'labels': ['OS-Chrome', 'VideoTestFailure'],
}

DOC = """
This is a wrapper test for Chrome video_decode_accelerator_unittest.
"""

# The FPS expectations here are lower than observed in most runs to keep
# the bots green.
videos = ['test-25fps.vp9:320:240:250:250:35:150:12']

args_dict = utils.args_to_dict(args)
job.run_test('video_VideoDecodeAccelerator', videos=videos, **args_dict)