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 (
func init() {
Func: GellerLogin,
Desc: "Checks if Geller login is working",
Contacts: []string{"", "", "", ""},
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")