typec

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 35 Imported by: 0

Documentation

Overview

Package typec contains tests which exercise USB Type-C connector related functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChargingThroughTypec

func ChargingThroughTypec(ctx context.Context, s *testing.State)

ChargingThroughTypec func validates DUT charging state on USB4/TBT hot plug-unplug.

func HotplugUSBHeadsetAudioPlayback

func HotplugUSBHeadsetAudioPlayback(ctx context.Context, s *testing.State)

HotplugUSBHeadsetAudioPlayback test requires the following H/W topology to run. DUT ------> C-Switch(device that performs hot plug-unplug) ----> USB Headset.

func ModeCrash

func ModeCrash(ctx context.Context, s *testing.State)

ModeCrash does the following: - Login. - Validate that TBT alt mode is working correctly. - Kill typecd. - Logout. - Validate that the dock in in USB+Dp alt mode.

This test requires the following H/W topology to run.

  DUT ------> Thunderbolt3 (>= Titan Ridge) dock -----> DP monitor.
(USB4)

func ModeHotplug

func ModeHotplug(ctx context.Context, s *testing.State)

ModeHotplug does the following: - Login. - Validate that the Thunderbolt dock is enumerated correctly. - Simulate unplug of the dock. - Validate that the Thunderbolt dock is no longer enumerated. - Simulate re-plug of the dock. - Validate that the Thunderbolt dock is re-enumerated correctly.

This test requires the following H/W topology to run.

  DUT ------> Thunderbolt3 (>= Titan Ridge) dock -----> DP monitor.
(USB4)

The Thunderbolt dock is assumed connected on port index 1.

func ModeSuspend

func ModeSuspend(ctx context.Context, s *testing.State)

ModeSuspend does the following: - Login. - Validate that the Thunderbolt dock (and connected display) is enumerated correctly. - Enter Suspend (S0ix). - Validate that the system entered and exited suspend successfully. - Validate that the Thunderbolt dock (and connected display) is still enumerated correctly.

This test requires the following H/W topology to run.

  DUT ------> Thunderbolt3 (>= Titan Ridge) dock -----> DP monitor.
(USB4)

func ModeSwitch

func ModeSwitch(ctx context.Context, s *testing.State)

ModeSwitch does the following: - Go to the login screen. - Validate USB+DP alt mode is working correctly. - Login. - Validate that TBT alt mode is working correctly.

This test requires the following H/W topology to run.

  DUT ------> Thunderbolt3 (>= Titan Ridge) dock -----> DP monitor.
(USB4)

func TbtDataTransferAfterHotplug

func TbtDataTransferAfterHotplug(ctx context.Context, s *testing.State)

TbtDataTransferAfterHotplug performs the following: - Hot plug TBT Device into DUT with help of cswitch. - Performs TBT Device enumeration check. - Performs data transfer from DUT to TBT device. - Unplug TBT device from DUT and validates TBT device detection.

This test requires the following H/W topology to run.

DUT ------> C-Switch(device that performs hot plug-unplug)---->TBT SSD.

func TbtHotplugUnplug

func TbtHotplugUnplug(ctx context.Context, s *testing.State)

TbtHotplugUnplug performs the following: - Hot plug TBT Device into DUT with help of cswitch. - Performs TBT Device enumeration check. - Unplug TBT device from DUT and validates TBT device detection.

This test requires the following H/W topology to run.

DUT ------> C-Switch(device that performs hot plug-unplug)---->TBT SSD.

func Usb4HotplugUnplug

func Usb4HotplugUnplug(ctx context.Context, s *testing.State)

Usb4HotplugUnplug func performs hot plug unplug on connected USB4 device and validate device enumeration.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service implements tast.cros.typec.Service.

func (*Service) NewChromeLoginWithPeripheralDataAccess

func (c *Service) NewChromeLoginWithPeripheralDataAccess(ctx context.Context, req *typec.KeyPath) (*empty.Empty, error)

NewChromeLoginWithPeripheralDataAccess logs in to Chrome as a fake user, but before that, enables the DevicePciPeripheralDataAccess setting.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL