blob: 7edc3947493a961f0eb95324ba5a193087d1d7d2 [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 (
"context"
"time"
"chromiumos/tast/common/media/caps"
"chromiumos/tast/local/bundles/cros/camera/hal3"
"chromiumos/tast/local/chrome"
"chromiumos/tast/testing"
)
func init() {
testing.AddTest(&testing.Test{
Func: HAL3Stream,
Desc: "Verifies camera stream function with HAL3 interface",
Contacts: []string{"hywu@chromium.org", "shik@chromium.org", "chromeos-camera-eng@google.com"},
Attr: []string{"group:mainline", "informational", "group:camera-libcamera"},
SoftwareDeps: []string{"arc", "arc_camera3", "chrome", caps.BuiltinCamera},
Pre: chrome.LoggedIn(),
Timeout: 4 * time.Minute,
})
}
func HAL3Stream(ctx context.Context, s *testing.State) {
if err := hal3.RunTest(ctx, hal3.StreamTestConfig()); err != nil {
s.Error("Test failed: ", err)
}
}