Documentation ¶
Overview ¶
Package lacros tests lacros-chrome running on ChromeOS.
Package lacros tests lacros-chrome running on ChromeOS.
Package lacros tests lacros-chrome running on ChromeOS.
Package lacros tests lacros-chrome running on ChromeOS.
Package lacros tests lacros-chrome running on ChromeOS.
Index ¶
- func AppLauncherLaunch(ctx context.Context, s *testing.State)
- func AudioPinnedStream(ctx context.Context, s *testing.State)
- func AudioPlay(ctx context.Context, s *testing.State)
- func AudioRecord(ctx context.Context, s *testing.State)
- func Basic(ctx context.Context, s *testing.State)
- func DocsCUJ(ctx context.Context, s *testing.State)
- func GpuCUJ(ctx context.Context, s *testing.State)
- func JSMicrobench(ctx context.Context, s *testing.State)
- func Memory(ctx context.Context, s *testing.State)
- func Migrate(ctx context.Context, s *testing.State)
- func MotionMark(ctx context.Context, s *testing.State)
- func Octane(ctx context.Context, s *testing.State)
- func PowerVideocall(ctx context.Context, s *testing.State)
- func ShelfLaunch(ctx context.Context, s *testing.State)
- func Speedometer(ctx context.Context, s *testing.State)
- func StartupPerf(ctx context.Context, s *testing.State)
- func VariationSmoke(ctx context.Context, s *testing.State)
- type UpdateTestService
- func (uts *UpdateTestService) ClearUpdate(ctx context.Context, req *lacrosservice.ClearUpdateRequest) (*lacrosservice.ClearUpdateResponse, error)
- func (uts *UpdateTestService) GetBrowserVersion(ctx context.Context, req *lacrosservice.GetBrowserVersionRequest) (*lacrosservice.GetBrowserVersionResponse, error)
- func (uts *UpdateTestService) VerifyUpdate(ctx context.Context, req *lacrosservice.VerifyUpdateRequest) (*lacrosservice.VerifyUpdateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Memory ¶
Memory is a basic test for lacros memory usage. It measures the PMF and PSS overhead for lacros-chrome with a single about:blank tab. It also makes the same measurements for ash-chrome. This estimate is not perfect. For example, this test does not measure the size of the ash-chrome test API extension, but it does include the extension for lacros-chrome. Furthermore, this test does not have fine control over ash-chrome, which may choose to spawn/kill utility or renderer processes for its own purposes. My running the same code 10 times, outliers become obvious.
func StartupPerf ¶
StartupPerf measures Chrome OS from session start until the moment where the first browser window is shown. There are few metrics collected at the moment such as session start time, browser restore time and others in order to provide optimization possibilities for the developers.
Types ¶
type UpdateTestService ¶
type UpdateTestService struct {
// contains filtered or unexported fields
}
UpdateTestService implements tast.cros.lacros.UpdateTestService.
func (*UpdateTestService) ClearUpdate ¶
func (uts *UpdateTestService) ClearUpdate(ctx context.Context, req *lacrosservice.ClearUpdateRequest) (*lacrosservice.ClearUpdateResponse, error)
ClearUpdate removes all provisioned Lacros on a DUT to reset to the previous state between tests.
func (*UpdateTestService) GetBrowserVersion ¶
func (uts *UpdateTestService) GetBrowserVersion(ctx context.Context, req *lacrosservice.GetBrowserVersionRequest) (*lacrosservice.GetBrowserVersionResponse, error)
GetBrowserVersion returns version info of the given browser type. If multiple Lacros browsers are provisioned in the stateful partition, all the versions will be returned.
func (*UpdateTestService) VerifyUpdate ¶
func (uts *UpdateTestService) VerifyUpdate(ctx context.Context, req *lacrosservice.VerifyUpdateRequest) (*lacrosservice.VerifyUpdateResponse, error)
VerifyUpdate checks if the expected version of Lacros is loaded successfully without crash given the browsers provisioned.