Documentation ¶
Overview ¶
Package typec contains tests which exercise USB Type-C connector related functionality.
Index ¶
- func ChargingThroughTypec(ctx context.Context, s *testing.State)
- func HotplugUSBHeadsetAudioPlayback(ctx context.Context, s *testing.State)
- func ModeCrash(ctx context.Context, s *testing.State)
- func ModeHotplug(ctx context.Context, s *testing.State)
- func ModeSuspend(ctx context.Context, s *testing.State)
- func ModeSwitch(ctx context.Context, s *testing.State)
- func TbtDataTransferAfterHotplug(ctx context.Context, s *testing.State)
- func TbtHotplugUnplug(ctx context.Context, s *testing.State)
- func Usb4HotplugUnplug(ctx context.Context, s *testing.State)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChargingThroughTypec ¶
ChargingThroughTypec func validates DUT charging state on USB4/TBT hot plug-unplug.
func HotplugUSBHeadsetAudioPlayback ¶
HotplugUSBHeadsetAudioPlayback test requires the following H/W topology to run. DUT ------> C-Switch(device that performs hot plug-unplug) ----> USB Headset.
func ModeCrash ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.
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.