Documentation ¶
Overview ¶
Package update contains helper functions for Lacros update tests.
Index ¶
- func ClearLacrosUpdate(ctx context.Context, utsClient lacrosservice.UpdateTestServiceClient) error
- func GetAshVersion(ctx context.Context, dut *dut.DUT, ...) (version.Version, error)
- func GetRootfsLacrosVersion(ctx context.Context, dut *dut.DUT, ...) (version.Version, error)
- func LacrosComponentVar(s *testing.State) (string, error)
- func ProvisionLacrosFromRootfsLacrosImagePath(ctx context.Context, tlsAddr string, dut *dut.DUT, ...) error
- func SaveLogsFromDut(ctx context.Context, dut *dut.DUT, logOutDir string)
- func VerifyLacrosUpdate(ctx context.Context, expectedBrowser lacrosservice.BrowserType, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearLacrosUpdate ¶
func ClearLacrosUpdate(ctx context.Context, utsClient lacrosservice.UpdateTestServiceClient) error
ClearLacrosUpdate calls a RPC to the test service to remove provisioned Lacros and reset to the previous state.
func GetAshVersion ¶
func GetAshVersion(ctx context.Context, dut *dut.DUT, utsClient lacrosservice.UpdateTestServiceClient) (version.Version, error)
GetAshVersion returns the version of Ash Chrome.
func GetRootfsLacrosVersion ¶
func GetRootfsLacrosVersion(ctx context.Context, dut *dut.DUT, utsClient lacrosservice.UpdateTestServiceClient) (version.Version, error)
GetRootfsLacrosVersion returns the version of Lacros Chrome in the Rootfs partition.
func LacrosComponentVar ¶
LacrosComponentVar returns the valid Lacros component to override from the runtime var. Defaults to Lacros dev channel if the var is not present.
func ProvisionLacrosFromRootfsLacrosImagePath ¶
func ProvisionLacrosFromRootfsLacrosImagePath(ctx context.Context, tlsAddr string, dut *dut.DUT, overrideVersion, overrideComponent string) error
ProvisionLacrosFromRootfsLacrosImagePath calls a RPC to the TLS to provision Stateful Lacros from the source of Rootfs Lacros image installation path. This is useful when making the test hermetic by removing external source of Lacros binary.
func SaveLogsFromDut ¶
SaveLogsFromDut saves device logs that are useful for troubleshooting test failures.
func VerifyLacrosUpdate ¶
func VerifyLacrosUpdate(ctx context.Context, expectedBrowser lacrosservice.BrowserType, expectedVersion, expectedComponent string, utsClient lacros.UpdateTestServiceClient) error
VerifyLacrosUpdate calls a RPC to the test service to verify the provisioned Lacros update is installed and selected in runtime on a DUT as expected.
Types ¶
This section is empty.