blob: 98a72ba1bc878b58e6149a5fef2f5177a26728f6 [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 familylink is used for writing Family Link tests.
package familylink
import (
"context"
"time"
"chromiumos/tast/local/chrome"
"chromiumos/tast/local/chrome/familylink"
"chromiumos/tast/testing"
)
func init() {
testing.AddTest(&testing.Test{
Func: GellerLogin,
Desc: "Checks if Geller login is working",
Contacts: []string{"chromeos-sw-engprod@google.com", "cros-oac@google.com", "tobyhuang@chromium.org", "cros-families-eng+test@google.com"},
Attr: []string{"group:mainline", "informational"},
SoftwareDeps: []string{"chrome"},
Timeout: chrome.GAIALoginTimeout + time.Minute,
Fixture: "familyLinkGellerLogin",
})
}
func GellerLogin(ctx context.Context, s *testing.State) {
cr := s.FixtValue().(*familylink.FixtData).Chrome
tconn := s.FixtValue().(*familylink.FixtData).TestConn
if cr == nil {
s.Fatal("Failed to start Chrome")
}
if tconn == nil {
s.Fatal("Failed to create test API connection")
}
}