blob: 95f6bfa14d2c26fa4d0843e54d0bf80a2b34e71b [file] [log] [blame]
// Copyright 2019 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 ui
import (
func init() {
Func: TabSwitchCUJ,
Desc: "Measures the performance of tab-switching CUJ",
Contacts: []string{"", "", ""},
SoftwareDeps: []string{"chrome"},
Timeout: 22 * time.Minute,
Vars: []string{"mute"},
Params: []testing.Param{{
ExtraAttr: []string{"group:crosbolt", "crosbolt_perbuild"},
ExtraData: []string{tabswitchcuj.WPRArchiveName},
Val: lacros.ChromeTypeChromeOS,
Pre: wpr.ReplayMode(tabswitchcuj.WPRArchiveName),
}, {
Name: "lacros",
Val: lacros.ChromeTypeLacros,
Fixture: "loggedInToCUJUserLacros",
ExtraData: []string{launcher.DataArtifact},
ExtraSoftwareDeps: []string{"lacros"},
func TabSwitchCUJ(ctx context.Context, s *testing.State) {
// Ensure display on to record ui performance correctly.
if err := power.TurnOnDisplay(ctx); err != nil {
s.Fatal("Failed to turn on display: ", err)
tabswitchcuj.Run(ctx, s)