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