# Copyright (c) 2012 The Chromium 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.vp8"
PURPOSE = "Verify Chromium hardware Video Decode Acceleration 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_vp8"
RETRIES = 1
BUG_TEMPLATE = {
    'labels': ['OS-Chrome', 'VideoTestFailure'],
    'cc': ['chromeos-video-test-failures@google.com'],
}

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.vp8:320:240:250:250:35:150:11']

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