blob: 74aadfaf9740096f89bd354d18cee5d8a89f6037 [file] [log] [blame] [edit]
// Copyright 2020 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 login
import (
"context"
"time"
"chromiumos/tast/local/chrome"
"chromiumos/tast/testing"
)
func init() {
testing.AddTest(&testing.Test{
Func: ChromeGAIA,
Desc: "Checks that Chrome can make real GAIA logins",
Contacts: []string{
"tast-owners@google.com",
"cros-oac@google.com",
"chromeos-sw-engprod@google.com",
},
SoftwareDeps: []string{
"chrome",
"chrome_internal",
},
Attr: []string{
"group:mainline",
},
VarDeps: []string{
"ui.gaiaPoolDefault",
},
Timeout: chrome.GAIALoginTimeout + time.Minute,
})
}
func ChromeGAIA(ctx context.Context, s *testing.State) {
cr, err := chrome.New(
ctx,
chrome.GAIALoginPool(s.RequiredVar("ui.gaiaPoolDefault")),
)
if err != nil {
s.Fatal("Chrome login failed: ", err)
}
defer cr.Close(ctx)
}