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