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