blob: 2cce1272c5ab8c9ce49cefe68e64db8b4537e53a [file] [log] [blame]
// Copyright 2021 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 ui
import (
"context"
"chromiumos/tast/local/chrome"
"chromiumos/tast/testing"
)
func init() {
testing.AddTest(&testing.Test{
Func: GuestModeExtension,
Desc: "Check Tast extension can be loaded in Guest mode",
Contacts: []string{"benreich@chromium.org", "chromeos-engprod-syd@google.com"},
SoftwareDeps: []string{"chrome"},
Attr: []string{"group:mainline"},
Fixture: "chromeLoggedInGuest",
})
}
func GuestModeExtension(ctx context.Context, s *testing.State) {
cr := s.FixtValue().(*chrome.Chrome)
// Attempt to open the Test API connection.
if _, err := cr.TestAPIConn(ctx); err != nil {
s.Fatal("Failed to create Test API Connection: ", err)
}
}