smartlock

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package smartlock is for controlling ChromeOS Smart Lock functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSmartLockVisibilityOnLockScreen

func CheckSmartLockVisibilityOnLockScreen(ctx context.Context, expectVisible bool, tconn *chrome.TestConn, username, password string) error

CheckSmartLockVisibilityOnLockScreen locks the session and checks whether Smart Lock is visible on the lock screen, before unlocking.

func CheckSmartLockVisibilityOnSigninScreen

func CheckSmartLockVisibilityOnSigninScreen(ctx context.Context, expectVisible bool, cr *chrome.Chrome, tconn *chrome.TestConn, loginOpts, noLoginOpts []chrome.Option) (*chrome.Chrome, *chrome.TestConn, error)

CheckSmartLockVisibilityOnSigninScreen signs out and checks whether Smart Lock is visible on the signin screen, before signing back in.

func DisableSmartLockLogin

func DisableSmartLockLogin(ctx context.Context, tconn *chrome.TestConn, cr *chrome.Chrome) error

DisableSmartLockLogin disables Smart Lock login functionality. This means that only unlocking with Smart Lock is allowed.

func EnableSmartLockLogin

func EnableSmartLockLogin(ctx context.Context, tconn *chrome.TestConn, cr *chrome.Chrome, password string) error

EnableSmartLockLogin enables the ability to login with Smart Lock.

func OpenSmartLockSubpage

func OpenSmartLockSubpage(ctx context.Context, tconn *chrome.TestConn, cr *chrome.Chrome) (*ossettings.OSSettings, error)

OpenSmartLockSubpage opens the Smart Lock sub page in OS Settings

func SignOut

SignOut ends the existing chrome session and logs out by keyboard shortcut.

func ToggleSmartLockEnabled

func ToggleSmartLockEnabled(ctx context.Context, enable bool, tconn *chrome.TestConn, cr *chrome.Chrome, password string) error

ToggleSmartLockEnabled opens the Smart Lock sub page in OS Settings and toggles Smart Lock's enabled state

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL