Documentation ¶
Overview ¶
Package optin provides set of util functions used to control ARC provisioning.
Index ¶
- Constants
- func ClosePlayStore(ctx context.Context, tconn *chrome.TestConn) error
- func DumpLogCat(ctx context.Context, filesuffix string) error
- func EnsureNoPlayStoreError(ctx context.Context, cr *chrome.Chrome) error
- func FindOptInExtensionPageAndAcceptTerms(ctx context.Context, cr *chrome.Chrome, maxAttempts int, wait bool) error
- func GetPlayStoreState(ctx context.Context, tconn *chrome.TestConn) (map[string]bool, error)
- func LaunchAndWaitForPlayStore(ctx context.Context, tconn *chrome.TestConn, cr *chrome.Chrome, ...) error
- func Perform(ctx context.Context, cr *chrome.Chrome, tconn *chrome.TestConn) error
- func PerformAndClose(ctx context.Context, cr *chrome.Chrome, tconn *chrome.TestConn) error
- func PerformWithRetry(ctx context.Context, cr *chrome.Chrome, maxAttempts int) error
- func SetPlayStoreEnabled(ctx context.Context, tconn *chrome.TestConn, enabled bool) error
- func WaitForPlayStoreReady(ctx context.Context, tconn *chrome.TestConn) error
- func WaitForPlayStoreShown(ctx context.Context, tconn *chrome.TestConn, timeout time.Duration) error
Constants ¶
const ( // OptinTimeout is the maximum amount of time that Optin is expected to take. OptinTimeout = 5 * time.Minute // PlayStoreCloseTimeout is the timeout value waiting for Play Store window to show up // and then close it after optin. PlayStoreCloseTimeout = 1 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func ClosePlayStore ¶
ClosePlayStore closes the Play Store app.
func DumpLogCat ¶
DumpLogCat saves logcat to test output directory.
func EnsureNoPlayStoreError ¶
EnsureNoPlayStoreError ensures that the Play Store window doesn't display an error.
func FindOptInExtensionPageAndAcceptTerms ¶
func FindOptInExtensionPageAndAcceptTerms(ctx context.Context, cr *chrome.Chrome, maxAttempts int, wait bool) error
FindOptInExtensionPageAndAcceptTerms finds the opt-in extension page, optins if verified, and optionally waits for completion.
func GetPlayStoreState ¶
GetPlayStoreState is a wrapper for chrome.autotestPrivate.getPlayStoreState.
func LaunchAndWaitForPlayStore ¶
func LaunchAndWaitForPlayStore(ctx context.Context, tconn *chrome.TestConn, cr *chrome.Chrome, timeout time.Duration) error
LaunchAndWaitForPlayStore launches Play Store and ensures that it doesn't display an error.
func PerformAndClose ¶
PerformAndClose performs opt-in with retries, and then closes the play store window.
func PerformWithRetry ¶
PerformWithRetry steps through opt-in flow, waits for it to complete, and re-attempts in case of failure.
func SetPlayStoreEnabled ¶
SetPlayStoreEnabled is a wrapper for chrome.autotestPrivate.setPlayStoreEnabled.
func WaitForPlayStoreReady ¶
WaitForPlayStoreReady waits for Play Store app to be ready.
Types ¶
This section is empty.