blob: b65ad0161c9ed6422374fc0bef48c3f615e78730 [file] [log] [blame]
// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package camera
import (
func init() {
Func: HAL3StillCapture,
Desc: "Verifies camera still capture function with HAL3 interface",
Contacts: []string{"", "", ""},
Attr: []string{"group:mainline", "informational", "group:camera-libcamera"},
SoftwareDeps: []string{"arc", "arc_camera3", "chrome", caps.BuiltinCamera},
Pre: chrome.LoggedIn(),
// Krane needs 4 minutes and 30 seconds for whole dark environment(covering the camera lens).
// We also need rooms for preparation time.
Timeout: 6 * time.Minute,
func HAL3StillCapture(ctx context.Context, s *testing.State) {
if err := hal3.RunTest(ctx, hal3.StillCaptureTestConfig()); err != nil {
s.Error("Test failed: ", err)