# 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 = "Chrome OS Project, chromeos-video@google.com"
NAME = "video_ChromeHWDecodeUsed.vp8"
PURPOSE = "Verify that VP8 video decode acceleration works in Chrome"
CRITERIA = """
This test will fail if VDA doesn't work with Chrome navigating to a webm file.
"""
TIME = "SHORT"
ATTRIBUTES = "suite:bvt-cq, suite:partners"
SUITE = "bvt-cq, partners"
TEST_CATEGORY = "General"
TEST_CLASS = "video"
TEST_TYPE = "client"
DEPENDENCIES = "hw_video_acc_vp8"
JOB_RETRIES = 2
BUG_TEMPLATE = {
    'labels': ['OS-Chrome', 'VideoTestFailure'],
    'cc': ['chromeos-video-test-failures@google.com'],
}

DOC = """
This test verifies VP8 video decode acceleration works.
"""

video = str('http://commondatastorage.googleapis.com/'
            'chromiumos-test-assets-public/Shaka-Dash/720_vp8.webm')
job.run_test('video_ChromeHWDecodeUsed', is_mse=0, video_file=video)