Documentation ¶
Overview ¶
Package ui contains local Tast tests that exercise Chrome's integration with the rest of Chrome OS.
Please use Chrome browser tests (https://www.chromium.org/developers/testing/browser-tests) or unit tests instead whenever possible.
Index ¶
- func ArcYoutubeCUJ(ctx context.Context, s *testing.State)
- func BasicYoutubeCUJ(ctx context.Context, s *testing.State)
- func BubbleLauncherAnimationPerf(ctx context.Context, s *testing.State)
- func CUJRunner(ctx context.Context, s *testing.State)
- func ChromeCrashLoggedIn(ctx context.Context, s *testing.State)
- func ChromeCrashLoggedInDirect(ctx context.Context, s *testing.State)
- func ChromeCrashLoop(ctx context.Context, s *testing.State)
- func ChromeCrashLoopV2(ctx context.Context, s *testing.State)
- func ChromeCrashNotLoggedIn(ctx context.Context, s *testing.State)
- func ChromeCrashNotLoggedInDirect(ctx context.Context, s *testing.State)
- func ChromeCrashReporterMetrics(ctx context.Context, s *testing.State)
- func ChromePIPEnergyAndPower(ctx context.Context, s *testing.State)
- func ChromePIPRoundedCornersUnderlay(ctx context.Context, s *testing.State)
- func ChromeRespawn(ctx context.Context, s *testing.State)
- func ChromeValidity(ctx context.Context, s *testing.State)
- func ChromeVariationsSmoke(ctx context.Context, s *testing.State)
- func DMICRecord(ctx context.Context, s *testing.State)
- func DeskTemplatesCUJ(ctx context.Context, s *testing.State)
- func DesksAnimationPerf(ctx context.Context, s *testing.State)
- func DesksCUJ(ctx context.Context, s *testing.State)
- func DesksChainedAnimationPerf(ctx context.Context, s *testing.State)
- func DesksTrackpadSwipePerf(ctx context.Context, s *testing.State)
- func DesktopControl(ctx context.Context, s *testing.State)
- func DragMaximizedWindowPerf(ctx context.Context, s *testing.State)
- func DragTabInClamshellPerf(ctx context.Context, s *testing.State)
- func DragTabInTabletPerf(ctx context.Context, s *testing.State)
- func DragWindowFromShelfPerf(ctx context.Context, s *testing.State)
- func EverydayMultiTaskingCUJ(ctx context.Context, s *testing.State)
- func Exceptions(ctx context.Context, s *testing.State)
- func ExtendedDisplayCUJ(ctx context.Context, s *testing.State)
- func ForceRegion(ctx context.Context, s *testing.State)
- func FrontlineWorkerCUJ(ctx context.Context, s *testing.State)
- func GoogleDocsWebCUJ(ctx context.Context, s *testing.State)
- func GoogleSheetsCUJ(ctx context.Context, s *testing.State)
- func GoogleSlidesCUJ(ctx context.Context, s *testing.State)
- func GuestModeExtension(ctx context.Context, s *testing.State)
- func HotseatAnimation(ctx context.Context, s *testing.State)
- func HotseatDrag(ctx context.Context, s *testing.State)
- func HotseatScrollPerf(ctx context.Context, s *testing.State)
- func IdlePerf(ctx context.Context, s *testing.State)
- func KeyboardBinding(ctx context.Context, s *testing.State)
- func LauncherAnimationPerf(ctx context.Context, s *testing.State)
- func LauncherDragPerf(ctx context.Context, s *testing.State)
- func LauncherPageSwitchPerf(ctx context.Context, s *testing.State)
- func LoginPerf(ctx context.Context, s *testing.State)
- func MeetCUJ(ctx context.Context, s *testing.State)
- func MeetMultiTaskingCUJ(ctx context.Context, s *testing.State)
- func MicrosoftOfficeWebCUJ(ctx context.Context, s *testing.State)
- func MultiAccountLogin(ctx context.Context, s *testing.State)
- func NotificationClosePerf(ctx context.Context, s *testing.State)
- func NotificationPopupPerf(ctx context.Context, s *testing.State)
- func NotificationScrollingPerf(ctx context.Context, s *testing.State)
- func OobePerf(ctx context.Context, s *testing.State)
- func OverviewDragWindowPerf(ctx context.Context, s *testing.State)
- func OverviewPerf(ctx context.Context, s *testing.State)
- func OverviewScrollPerf(ctx context.Context, s *testing.State)
- func PerformantSplitViewPerf(ctx context.Context, s *testing.State)
- func PlayPauseChrome(ctx context.Context, s *testing.State)
- func QuickCheckCUJ(ctx context.Context, s *testing.State)
- func QuickCheckCUJ2(ctx context.Context, s *testing.State)
- func QuickSettingsPerf(ctx context.Context, s *testing.State)
- func ScreenRotationPerf(ctx context.Context, s *testing.State)
- func SessionManagerRespawn(ctx context.Context, s *testing.State)
- func SnapPerf(ctx context.Context, s *testing.State)
- func SplitViewResizePerf(ctx context.Context, s *testing.State)
- func StadiaGameplayCUJ(ctx context.Context, s *testing.State)
- func SystemTrayItemsPerf(ctx context.Context, s *testing.State)
- func TabHoverCardAnimationPerf(ctx context.Context, s *testing.State)
- func TabLoadingAnimationPerf(ctx context.Context, s *testing.State)
- func TabSwitchCUJ(ctx context.Context, s *testing.State)
- func TabSwitchCUJ2(ctx context.Context, s *testing.State)
- func TabSwitchCUJRecorder(ctx context.Context, s *testing.State)
- func TabSwitchCUJRecorder2(ctx context.Context, s *testing.State)
- func TabletOperations(ctx context.Context, s *testing.State)
- func TabletTransitionPerf(ctx context.Context, s *testing.State)
- func TaskSwitchCUJ(ctx context.Context, s *testing.State)
- func UnlockPerf(ctx context.Context, s *testing.State)
- func VideoCUJ(ctx context.Context, s *testing.State)
- func VideoCUJ2(ctx context.Context, s *testing.State)
- func WebUIJSErrors(ctx context.Context, s *testing.State)
- func WindowArrangementCUJ(ctx context.Context, s *testing.State)
- func WindowControl(ctx context.Context, s *testing.State)
- func WindowCyclePerf(ctx context.Context, s *testing.State)
- func WindowResizePerf(ctx context.Context, s *testing.State)
- func YoutubeAudioStress(ctx context.Context, s *testing.State)
- func YoutubeMultiTab(ctx context.Context, s *testing.State)
- func YoutubeScreenRotate(ctx context.Context, s *testing.State)
- func YoutubeStreamCUJ(ctx context.Context, s *testing.State)
- type AudioService
- func (as *AudioService) AudioCrasSelectedOutputDevice(ctx context.Context, req *empty.Empty) (*ui.AudioServiceResponse, error)
- func (as *AudioService) Close(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (as *AudioService) ConvertRawToWav(ctx context.Context, req *ui.AudioServiceRequest) (*empty.Empty, error)
- func (as *AudioService) GenerateTestRawData(ctx context.Context, req *ui.AudioServiceRequest) (*empty.Empty, error)
- func (as *AudioService) KeyboardAccel(ctx context.Context, req *ui.AudioServiceRequest) (*empty.Empty, error)
- func (as *AudioService) New(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (as *AudioService) OpenDirectoryAndFile(ctx context.Context, req *ui.AudioServiceRequest) (*empty.Empty, error)
- func (as *AudioService) SetActiveNodeByType(ctx context.Context, req *ui.AudioServiceRequest) (*empty.Empty, error)
- func (as *AudioService) VerifyFirstRunningDevice(ctx context.Context, req *ui.AudioServiceRequest) (*empty.Empty, error)
- type AutomationService
- func (svc *AutomationService) DoubleClick(ctx context.Context, req *pb.DoubleClickRequest) (*empty.Empty, error)
- func (svc *AutomationService) Info(ctx context.Context, req *pb.InfoRequest) (*pb.InfoResponse, error)
- func (svc *AutomationService) IsNodeFound(ctx context.Context, req *pb.IsNodeFoundRequest) (*pb.IsNodeFoundResponse, error)
- func (svc *AutomationService) LeftClick(ctx context.Context, req *pb.LeftClickRequest) (*empty.Empty, error)
- func (svc *AutomationService) MouseClickAtLocation(ctx context.Context, req *pb.MouseClickAtLocationRequest) (*empty.Empty, error)
- func (svc *AutomationService) RightClick(ctx context.Context, req *pb.RightClickRequest) (*empty.Empty, error)
- func (svc *AutomationService) WaitUntilExists(ctx context.Context, req *pb.WaitUntilExistsRequest) (*empty.Empty, error)
- type CheckVirtualKeyboardService
- func (cvk *CheckVirtualKeyboardService) CheckVirtualKeyboardIsPresent(ctx context.Context, req *pb.CheckVirtualKeyboardRequest) (*pb.CheckVirtualKeyboardResponse, error)
- func (cvk *CheckVirtualKeyboardService) ClickChromeAddressBar(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (cvk *CheckVirtualKeyboardService) CloseChrome(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (cvk *CheckVirtualKeyboardService) NewChromeLoggedIn(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (cvk *CheckVirtualKeyboardService) OpenChromePage(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (cvk *CheckVirtualKeyboardService) TouchChromeAddressBar(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- type ChromeService
- type ChromeUIService
- type ConferenceService
- type PowerMenuService
- func (p *PowerMenuService) CloseChrome(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (p *PowerMenuService) NewChrome(ctx context.Context, req *pb.NewChromeRequest) (*empty.Empty, error)
- func (p *PowerMenuService) PowerMenuItem(ctx context.Context, req *empty.Empty) (*pb.PowerMenuItemResponse, error)
- func (p *PowerMenuService) PowerMenuPresent(ctx context.Context, req *empty.Empty) (*pb.PowerMenuPresentResponse, error)
- type ScreenLockService
- func (p *ScreenLockService) CloseChrome(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (p *ScreenLockService) Lock(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (p *ScreenLockService) NewChrome(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (p *ScreenLockService) ReuseChrome(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- type ScreenRecorderService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicYoutubeCUJ ¶
BasicYoutubeCUJ plays YouTube video and performs basic user actions. Also checks for significant video frame drops and if the audio is being routed through expected device.
func ChromeCrashLoggedInDirect ¶
ChromeCrashLoggedInDirect tests that Chrome crashes that happen during tast tests are properly captured (that is, during tast tests which are testing something other than the crash system).
The other Chrome crash tests cover cases that we expect to occur on end-user machines, by simulating user consent. This test covers the tast case, where we bypass consent by telling the crash system that we are in a test environment. In particular, breakpad goes through a very different code path which doesn't involve crash_reporter at all, and we want that to keep working.
Note: The name is a misnomer; the 'Direct' refers to the old days when both breakpad and crashpad bypassed crash_reporter and wrote the crashes directly onto disk during this test. Crashpad no longer does that; the test should be named "TastMode". TODO(https://crbug.com/1201467): Rename to ChromeCrashLoggedInTastMode
func ChromeCrashLoop ¶
ChromeCrashLoop tests the crash-loop-mode crash reporter system. If Chrome crashes often enough to log the user out, a crash report will be generated and immediately sent to crash_sender; check that crash_sender correctly receives the crash report. DEPRECATED: This test has persistent issues where unrelated Chrome crashes make the test seem flaky. See ChromeCrashLoopV2 for a rewrite that removes this problem. See b/202795944 for more. TODO(b/202795944): Remove this version once ChromeCrashLoopV2 is out of "informational".
func ChromeCrashLoopV2 ¶
ChromeCrashLoopV2 tests the crash-loop-mode crash reporter system. If Chrome crashes often enough to log the user out, a crash report will be generated and immediately sent to crash_sender; check that crash_sender correctly receives the crash report. This the V2 version, a rewrite to avoid some of the intractable problems with the previous version. TODO(b/202795944): Remove old version once this is out of "informational".
func ChromeCrashNotLoggedInDirect ¶
ChromeCrashNotLoggedInDirect tests that Chrome crashes that happen during tast tests are properly captured (that is, during tast tests which are testing something other than the crash system).
The other Chrome crash tests cover cases that we expect to occur on end-user machines, by simulating user consent. This test covers the tast case, where we bypass consent by telling the crash system that we are in a test environment. In particular, breakpad goes through a very different code path which doesn't involve crash_reporter at all, and we want that to keep working.
Note: The name is a misnomer; the 'Direct' refers to the old days when both breakpad and crashpad bypassed crash_reporter and wrote the crashes directly onto disk during this test. Crashpad no longer does that; the test should be named "TastMode". TODO(https://crbug.com/1201467): Rename to ChromeCrashNotLoggedInTastMode
func ChromeVariationsSmoke ¶
ChromeVariationsSmoke tests that Chrome doesn't crash and basic web content rendering is functional when loading a given variations seed.
func ExtendedDisplayCUJ ¶
ExtendedDisplayCUJ performs the video cuj (youtube web) test on extended display. Known issues: b:187165216 describes an issue that click event cannot be executed on extended display on certain models.
func FrontlineWorkerCUJ ¶
FrontlineWorkerCUJ measures the system performance.
func HotseatAnimation ¶
HotseatAnimation measures the performance of hotseat background bounds animation.
func HotseatScrollPerf ¶
HotseatScrollPerf records the animation smoothness for shelf scroll animation.
func KeyboardBinding ¶
KeyboardBinding verifies keyboard key bindings can be changed properly.
func MeetCUJ ¶
MeetCUJ measures the performance of critical user journeys for Google Meet. Journeys for Google Meet are specified by testing parameters.
Pre-preparation:
- Open a Meet window.
- Create and enter the meeting code.
- Open a Google Docs window (if necessary).
- Enter split mode (if necessary).
- Turn off camera (if necessary).
During recording:
- Join the meeting.
- Add participants(bots) to the meeting.
- Set up the layout.
- Max out the number of the maximum tiles (if necessary).
- Start to present (if necessary).
- Input notes to Google Docs file (if necessary).
- Wait for 30 seconds before ending the meeting.
After recording:
- Record and save metrics.
func MeetMultiTaskingCUJ ¶
MeetMultiTaskingCUJ measures the performance of critical user journeys for multi-tasking with video conference.
Pre-preparation:
- Open a Meet window and grant permissions.
During recording:
- Join the meeting.
- Add a participant (bot) to the meeting.
- Open a large Google Docs file and scroll down.
- Open a large Google Slides file and go down.
- Open the Gmail inbox and scroll down.
After recording:
- Record and save metrics.
func QuickCheckCUJ2 ¶
QuickCheckCUJ2 measures the system performance after login or wakeup by checking common apps
func StadiaGameplayCUJ ¶
StadiaGameplayCUJ test starts and plays a exploration scene and gathering the performance. The game playing is hardcoded.
func TabSwitchCUJ2 ¶
TabSwitchCUJ2 measures the performance of tab-switching CUJ.
WPR server should be running in a remote server. TabSwitchCUJRecorder2 case can be used to record WPR content for this test in the remote server.
func TabSwitchCUJRecorder2 ¶
TabSwitchCUJRecorder2 runs tab-switching CUJ test in chrome wpr recording mode. It will record the premium scenario, which can be used for basic and plus testing as well.
The test can either do recording on a DUT local WPR server, or a remote WPR server. Local WPR server will be set up automatically by the preconditon. Steps to do remote recording:
- Manually run wpr in record mode on a remote server.
- Run this test.
- Manually terminate wpr to output a record file on remote server.
- Check remote wpr configureation to find the record file
func YoutubeAudioStress ¶
YoutubeAudioStress plays youtube video for long duration and verify audio routing through onboard speaker.
func YoutubeMultiTab ¶
YoutubeMultiTab plays YouTube video on multiple tabs concurrently, checks for significant frame drops and if the audio is being routed through expected device.
func YoutubeScreenRotate ¶
YoutubeScreenRotate plays YouTube video, performs screen rotation using display APIs and checks for any frame drops and if the audio is routing through expected device.
Types ¶
type AudioService ¶
type AudioService struct {
// contains filtered or unexported fields
}
AudioService implements tast.cros.ui.AudioService.
func (*AudioService) AudioCrasSelectedOutputDevice ¶
func (as *AudioService) AudioCrasSelectedOutputDevice(ctx context.Context, req *empty.Empty) (*ui.AudioServiceResponse, error)
AudioCrasSelectedOutputDevice will return selected audio device name and audio device type.
func (*AudioService) ConvertRawToWav ¶
func (as *AudioService) ConvertRawToWav(ctx context.Context, req *ui.AudioServiceRequest) (*empty.Empty, error)
ConvertRawToWav will convert raw data file to wav file format.
func (*AudioService) GenerateTestRawData ¶
func (as *AudioService) GenerateTestRawData(ctx context.Context, req *ui.AudioServiceRequest) (*empty.Empty, error)
GenerateTestRawData generates test raw data file.
func (*AudioService) KeyboardAccel ¶
func (as *AudioService) KeyboardAccel(ctx context.Context, req *ui.AudioServiceRequest) (*empty.Empty, error)
KeyboardAccel will create keyboard event and performs keyboard key press with Accel().
func (*AudioService) New ¶
New logs into a Chrome session as a fake user. Close must be called later to clean up the associated resources.
func (*AudioService) OpenDirectoryAndFile ¶
func (as *AudioService) OpenDirectoryAndFile(ctx context.Context, req *ui.AudioServiceRequest) (*empty.Empty, error)
OpenDirectoryAndFile performs launching filesapp and opening particular file in given directory.
func (*AudioService) SetActiveNodeByType ¶
func (as *AudioService) SetActiveNodeByType(ctx context.Context, req *ui.AudioServiceRequest) (*empty.Empty, error)
SetActiveNodeByType will set the provided audio node as Active audio node.
func (*AudioService) VerifyFirstRunningDevice ¶
func (as *AudioService) VerifyFirstRunningDevice(ctx context.Context, req *ui.AudioServiceRequest) (*empty.Empty, error)
VerifyFirstRunningDevice will check for audio routing device status.
type AutomationService ¶
type AutomationService struct {
// contains filtered or unexported fields
}
AutomationService implements tast.cros.ui.AutomationService
func (*AutomationService) DoubleClick ¶
func (svc *AutomationService) DoubleClick(ctx context.Context, req *pb.DoubleClickRequest) (*empty.Empty, error)
DoubleClick clicks on the location of the node found by the input finder. It will wait until the location is stable before clicking.
func (*AutomationService) Info ¶
func (svc *AutomationService) Info(ctx context.Context, req *pb.InfoRequest) (*pb.InfoResponse, error)
Info returns the information for the node found by the input finder.
func (*AutomationService) IsNodeFound ¶
func (svc *AutomationService) IsNodeFound(ctx context.Context, req *pb.IsNodeFoundRequest) (*pb.IsNodeFoundResponse, error)
IsNodeFound immediately checks if any nodes found with given finder. It returns true if found otherwise false.
func (*AutomationService) LeftClick ¶
func (svc *AutomationService) LeftClick(ctx context.Context, req *pb.LeftClickRequest) (*empty.Empty, error)
LeftClick clicks on the location of the node found by the input finder. It will wait until the location is stable before clicking.
func (*AutomationService) MouseClickAtLocation ¶
func (svc *AutomationService) MouseClickAtLocation(ctx context.Context, req *pb.MouseClickAtLocationRequest) (*empty.Empty, error)
MouseClickAtLocation clicks on the specified location.
func (*AutomationService) RightClick ¶
func (svc *AutomationService) RightClick(ctx context.Context, req *pb.RightClickRequest) (*empty.Empty, error)
RightClick clicks on the location of the node found by the input finder. It will wait until the location is stable before clicking.
func (*AutomationService) WaitUntilExists ¶
func (svc *AutomationService) WaitUntilExists(ctx context.Context, req *pb.WaitUntilExistsRequest) (*empty.Empty, error)
WaitUntilExists waits until the node found by the input finder exists.
type CheckVirtualKeyboardService ¶
type CheckVirtualKeyboardService struct {
// contains filtered or unexported fields
}
CheckVirtualKeyboardService implements the methods defined in CheckVirtualKeyboardServiceServer.
func (*CheckVirtualKeyboardService) CheckVirtualKeyboardIsPresent ¶
func (cvk *CheckVirtualKeyboardService) CheckVirtualKeyboardIsPresent(ctx context.Context, req *pb.CheckVirtualKeyboardRequest) (*pb.CheckVirtualKeyboardResponse, error)
CheckVirtualKeyboardIsPresent checks whether the virtual keyboard is present.
func (*CheckVirtualKeyboardService) ClickChromeAddressBar ¶
func (cvk *CheckVirtualKeyboardService) ClickChromeAddressBar(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
ClickChromeAddressBar sends a left click on the address bar.
func (*CheckVirtualKeyboardService) CloseChrome ¶
func (cvk *CheckVirtualKeyboardService) CloseChrome(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
CloseChrome closes a Chrome session and cleans up the resources obtained by NewChrome.
func (*CheckVirtualKeyboardService) NewChromeLoggedIn ¶
func (cvk *CheckVirtualKeyboardService) NewChromeLoggedIn(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
NewChromeLoggedIn Logs into a user session.
func (*CheckVirtualKeyboardService) OpenChromePage ¶
func (cvk *CheckVirtualKeyboardService) OpenChromePage(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
OpenChromePage opens a chrome page.
func (*CheckVirtualKeyboardService) TouchChromeAddressBar ¶
func (cvk *CheckVirtualKeyboardService) TouchChromeAddressBar(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
TouchChromeAddressBar uses touch screen to send a tap on the address bar.
type ChromeService ¶
type ChromeService struct {
// contains filtered or unexported fields
}
ChromeService implements tast.cros.ui.ChromeService
func (*ChromeService) Close ¶
Close closes all surfaces and Chrome. This will likely be called in a defer in remote tests instead of called explicitly.
func (*ChromeService) New ¶
func (svc *ChromeService) New(ctx context.Context, req *pb.NewRequest) (*empty.Empty, error)
New logs into Chrome with the supplied chrome options.
type ChromeUIService ¶
type ChromeUIService struct{}
ChromeUIService implements the methods defined in ChromeUIServiceServer.
func (*ChromeUIService) EnsureLoginScreen ¶
func (c *ChromeUIService) EnsureLoginScreen(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
EnsureLoginScreen emulates log out, and ensures login screen.
type ConferenceService ¶
type ConferenceService struct {
// contains filtered or unexported fields
}
func (*ConferenceService) RunGoogleMeetScenario ¶
func (s *ConferenceService) RunGoogleMeetScenario(ctx context.Context, req *pb.MeetScenarioRequest) (*empty.Empty, error)
func (*ConferenceService) RunZoomScenario ¶
func (s *ConferenceService) RunZoomScenario(ctx context.Context, req *pb.MeetScenarioRequest) (*empty.Empty, error)
type PowerMenuService ¶
type PowerMenuService struct {
// contains filtered or unexported fields
}
PowerMenuService implements tast.cros.ui.PowerMenuService.
func (*PowerMenuService) CloseChrome ¶
func (*PowerMenuService) NewChrome ¶
func (p *PowerMenuService) NewChrome(ctx context.Context, req *pb.NewChromeRequest) (*empty.Empty, error)
func (*PowerMenuService) PowerMenuItem ¶
func (p *PowerMenuService) PowerMenuItem(ctx context.Context, req *empty.Empty) (*pb.PowerMenuItemResponse, error)
PowerMenuItem reads from the power menu. Checking PowerMenuPresent is required prior to calling PowerMenuItem.
func (*PowerMenuService) PowerMenuPresent ¶
func (p *PowerMenuService) PowerMenuPresent(ctx context.Context, req *empty.Empty) (*pb.PowerMenuPresentResponse, error)
type ScreenLockService ¶
type ScreenLockService struct {
// contains filtered or unexported fields
}
ScreenLockService implements tast.cros.ui.ScreenLockService.
func (*ScreenLockService) CloseChrome ¶
func (*ScreenLockService) ReuseChrome ¶
type ScreenRecorderService ¶
type ScreenRecorderService struct {
// contains filtered or unexported fields
}
ScreenRecorderService implements tast.cros.ui.ScreenRecorderService It provides functionalities to perform screen recording.
func (*ScreenRecorderService) Start ¶
func (svc *ScreenRecorderService) Start(ctx context.Context, req *pb.StartRequest) (*empty.Empty, error)
Start creates a new media recorder and starts to record the screen. There can be only a single recording in progress at a time. If user does not specify the file name, the service will generate a temporary location for the recording and return that to the user in Stop().
func (*ScreenRecorderService) Stop ¶
func (svc *ScreenRecorderService) Stop(ctx context.Context, req *empty.Empty) (*pb.StopResponse, error)
Stop stops and saves the recording to the specified location.
Source Files ¶
- arc_youtube_cuj.go
- audio_service.go
- automation_service.go
- basic_youtube_cuj.go
- bubble_launcher_animation_perf.go
- check_power_menu_service.go
- check_virtual_keyboard_service.go
- chrome_crash_logged_in.go
- chrome_crash_logged_in_direct.go
- chrome_crash_loop.go
- chrome_crash_loop_v2.go
- chrome_crash_not_logged_in.go
- chrome_crash_not_logged_in_direct.go
- chrome_crash_reporter_metrics.go
- chrome_pip_energy_and_power.go
- chrome_pip_rounded_corners_underlay.go
- chrome_respawn.go
- chrome_service.go
- chrome_ui_service.go
- chrome_validity.go
- chrome_variations_smoke.go
- conference_service.go
- cuj_runner.go
- desk_templates_cuj.go
- desks_animation_perf.go
- desks_chained_animation_perf.go
- desks_cuj.go
- desks_trackpad_swipe_perf.go
- desktop_control.go
- dmic_record.go
- doc.go
- drag_maximized_window_perf.go
- drag_tab_in_clamshell_perf.go
- drag_tab_in_tablet_perf.go
- drag_window_from_shelf_perf.go
- everyday_multi_tasking_cuj.go
- exceptions.go
- extended_display_cuj.go
- force_region.go
- frontline_worker_cuj.go
- google_docs_web_cuj.go
- google_sheets_cuj.go
- google_slides_cuj.go
- guest_mode_extension.go
- hotseat_animation.go
- hotseat_drag.go
- hotseat_scroll_perf.go
- idle_perf.go
- keyboard_binding.go
- launcher_animation_perf.go
- launcher_drag_perf.go
- launcher_page_switch_perf.go
- login_perf.go
- meet_cuj.go
- meet_multi_tasking_cuj.go
- microsoft_office_web_cuj.go
- multi_account_login.go
- notification_close_perf.go
- notification_popup_perf.go
- notification_scrolling_perf.go
- oobe_perf.go
- overview_drag_window_perf.go
- overview_perf.go
- overview_scroll_perf.go
- performant_split_view_perf.go
- play_pause_chrome.go
- quick_check_cuj.go
- quick_check_cuj2.go
- quick_settings_perf.go
- screen_recorder_service.go
- screen_rotation_perf.go
- screenlock_service.go
- session_manager_respawn.go
- snap_perf.go
- split_view_resize_perf.go
- stadia_gameplay_cuj.go
- system_tray_items_perf.go
- tab_hover_card_animation_perf.go
- tab_loading_animation_perf.go
- tab_switch_cuj.go
- tab_switch_cuj2.go
- tab_switch_cuj_recorder.go
- tab_switch_cuj_recorder2.go
- tablet_operations.go
- tablet_transition_perf.go
- task_switch_cuj.go
- unlock_perf.go
- video_cuj.go
- video_cuj2.go
- webui_js_errors.go
- window_arrangement_cuj.go
- window_control.go
- window_cycle_perf.go
- window_resize_perf.go
- youtube_audio_stress.go
- youtube_multi_tab.go
- youtube_screen_rotate.go
- youtube_stream_cuj.go
Directories ¶
Path | Synopsis |
---|---|
Package chromecrash contains functionality shared by tests that exercise Chrome crash-dumping.
|
Package chromecrash contains functionality shared by tests that exercise Chrome crash-dumping. |
Package conference contains conference CUJ utilities and conference room instances.
|
Package conference contains conference CUJ utilities and conference room instances. |
Package cuj has utilities for CUJ-style UI performance tests.
|
Package cuj has utilities for CUJ-style UI performance tests. |
bluetooth
Package bluetooth provides the control of bluetooth settings from the OS settings window.
|
Package bluetooth provides the control of bluetooth settings from the OS settings window. |
Package cujrunner implements a way to run composed cuj using a json config.
|
Package cujrunner implements a way to run composed cuj using a json config. |
Package everydaymultitaskingcuj contains the test code for Everyday MultiTasking CUJ.
|
Package everydaymultitaskingcuj contains the test code for Everyday MultiTasking CUJ. |
Package frontlineworkercuj contains frontlineworker CUJ test cases library.
|
Package frontlineworkercuj contains frontlineworker CUJ test cases library. |
Package googleapps provides the control of google apps, including google docs and google slides.
|
Package googleapps provides the control of google apps, including google docs and google slides. |
Package netflix provides gmail instance for cuj tests on Chrome OS.
|
Package netflix provides gmail instance for cuj tests on Chrome OS. |
Package notification contains utilities to help writing ARC notification tests.
|
Package notification contains utilities to help writing ARC notification tests. |
Package perfutil provides utilities of storing performance data for UI tests.
|
Package perfutil provides utilities of storing performance data for UI tests. |
Package productivitycuj contains productivity CUJ test cases library.
|
Package productivitycuj contains productivity CUJ test cases library. |
Package quickcheckcuj contains quick check CUJ test cases scenario.
|
Package quickcheckcuj contains quick check CUJ test cases scenario. |
Package setup implements utils for ui testing setup.
|
Package setup implements utils for ui testing setup. |
Package tabswitchcuj contains the test code for TabSwitchCUJ.
|
Package tabswitchcuj contains the test code for TabSwitchCUJ. |
Package videocuj contains the test code for VideoCUJ.
|
Package videocuj contains the test code for VideoCUJ. |
Package windowarrangementcuj contains helper util and test code for WindowArrangementCUJ.
|
Package windowarrangementcuj contains helper util and test code for WindowArrangementCUJ. |