# Copyright 2018 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_JEAPerf"
PURPOSE = "Monitor the performance of the Chromium JEA."
CRITERIA = """
The test fails if the jpeg_encode_accelerator_unittest fails or crashes.
"""
ATTRIBUTES = "suite:crosbolt_perf_nightly"
TIME = "SHORT"
TEST_CATEGORY = "Performance"
TEST_CLASS = "video"
TEST_TYPE = "client"
DEPENDENCIES='hw_jpeg_acc_enc'
BUG_TEMPLATE = {
    'labels': ['OS-Chrome', 'VideoTestFailure'],
    'cc': ['chromeos-video-test-failures@google.com'],
}

DOC = """
This test utilizes the jpeg_encode_accelerator_unittest to measure the
performance of the Chromium Jpeg Encode Accelerator.
"""

test_cases = [
    ('jpeg_test/lake_4160x3120.yuv', 4160, 3120)
]

job.run_test('video_JEAPerf', test_cases=test_cases)