1# Copyright 2018 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5from autotest_lib.client.common_lib import utils 6 7AUTHOR = "Chrome OS Team, chromeos-video@google.com" 8NAME = "camera_HAL3.preview" 9PURPOSE = "Verify Chromium camera preview function with HAL3 interface." 10CRITERIA = """ 11This test will fail if any of the preview tests in cros_camera_test fails. 12""" 13ATTRIBUTES = "suite:bvt-perbuild" 14TIME = "SHORT" 15TEST_CATEGORY = "Functional" 16TEST_CLASS = "video" 17TEST_TYPE = "client" 18BUG_TEMPLATE = { 19 'labels': ['OS-Chrome', 'VideoTestFailure'], 20 'cc': ['chromeos-video-test-failures@google.com'], 21} 22 23DOC = """ 24This is a wrapper test for cros_camera_test. 25For more information on HAL3 see: 26https://source.android.com/devices/camera/camera3.html 27https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h 28""" 29 30facing_options = [ 31 '--%s=%s' % kv 32 for kv in utils.args_to_dict(args).items() 33 if kv[0] == 'camera_facing' 34] 35 36job.run_test( 37 'camera_HAL3', 38 options=['--gtest_filter=Camera3PreviewTest/*'] + facing_options) 39