bluetooth

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: 20 Imported by: 0

Documentation

Overview

Package bluetooth contains local Tast tests that exercise the CrOS Bluetooth surfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AudioPlayBtHeadsetManual

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

AudioPlayBtHeadsetManual plays audio file over BT Headset. Manual step: bluetooth.btHeadset bluetooth device has to be set to pairing mode before executing test-script.

func AudioPlaybackStress

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

AudioPlaybackStress plays audio file over BT speaker for long duration. Manual step: bluetooth.btDeviceName bluetooth device has to be set to pairing mode before executing test-script.

func AudioPlaybackVolumeSlider

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

AudioPlaybackVolumeSlider tests the volume slider works fine for audio playback on Bluetooth headset.

func BTPairMonoheadset

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

BTPairMonoheadset enables bluetooth and pair BT mono headset.

func ChromeLoggedInWithBluetoothRevamp

func ChromeLoggedInWithBluetoothRevamp(enabled bool) testing.FixtureImpl

ChromeLoggedInWithBluetoothRevamp returns a fixture implementation that builds on the existing chromeLoggedIn fixture to also enable or disable the BluetoothRevamp feature flag.

func OpenBluetoothSettingsFromQuickSettings

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

OpenBluetoothSettingsFromQuickSettings tests that a user can successfully navigate through to the Bluetooth sub-page within the OS Settings from the Settings button in the Bluetooth detailed view within the Quick Settings.

func PairNewDeviceFromBluetoothQuickSettings

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

PairNewDeviceFromBluetoothQuickSettings tests that a user can successfully open the pairing dialog from the "Pair new device" button in the detailed Bluetooth view within the Quick Settings.

func PairNewDeviceFromBluetoothSettings

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

PairNewDeviceFromBluetoothSettings tests that a user can successfully open the pairing dialog from the "Pair new device" button on the Bluetooth Settings sub-page.

func PairNewDeviceFromOSSettings

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

PairNewDeviceFromOSSettings tests that a user can successfully open the pairing dialog from the "Pair new device" button on the OS Settings page.

func ToggleBluetoothFromBluetoothQuickSettings

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

ToggleBluetoothFromBluetoothQuickSettings tests that a user can successfully toggle the Bluetooth state using the toggle in the detailed Bluetooth view within the Quick Settings.

func ToggleBluetoothFromBluetoothSettings

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

ToggleBluetoothFromBluetoothSettings tests that a user can successfully toggle the Bluetooth state using the Bluetooth toggle within the Bluetooth Settings sub-page.

func ToggleBluetoothFromOSSettings

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

ToggleBluetoothFromOSSettings tests that a user can successfully toggle the Bluetooth state using the Bluetooth toggle on the OS Settings page.

func ToggleBluetoothFromQuickSettings

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

ToggleBluetoothFromQuickSettings tests that a user can successfully toggle the Bluetooth state using the Bluetooth feature pod icon button within the Quick Settings.

func ToggleBluetoothUsingMojo

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

ToggleBluetoothUsingMojo toggles Bluetooth state using Bluetooth mojo API call and confirm the state change via platform API and using state in mojo

func UIToggleFromBTQuicksettings

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

UIToggleFromBTQuicksettings tests enabling/disabling Bluetooth from maximized quick settings UI. Enabling Bluetooth in maximized quick settings UI opens the Bluetooth quick settings UI. Since there is not UI element to wait on in Bluetooth quick settings UI, we need to poll the Adapter power state to avoid timing issues.

func UIToggleFromBTSettings

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

UIToggleFromBTSettings tests enabling/disabling Bluetooth from the Bluetooth settings UI in ChromeOS settings.

func UIToggleFromOSSettings

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

UIToggleFromOSSettings tests enabling/disabling Bluetooth from the ChromeOS settings UI.

func UIToggleFromQuicksettings

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

UIToggleFromQuicksettings tests enabling/disabling Bluetooth from minimized quick settings UI

Types

This section is empty.

Jump to

Keyboard shortcuts

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