Documentation ¶
Index ¶
- Constants
- Variables
- func ClickShutterButton(ctx context.Context, d *ui.Device) error
- func RestartApp(ctx context.Context, a *arc.ARC, d *ui.Device) error
- func RunTest(ctx context.Context, s *testing.State, f TestFunc)
- func SetTimerOption(ctx context.Context, d *ui.Device, t TimerOption) error
- func SwitchCamera(ctx context.Context, d *ui.Device) error
- func SwitchMode(ctx context.Context, d *ui.Device, mode Mode) error
- func VerifyFile(ctx context.Context, cr *chrome.Chrome, pat *regexp.Regexp, ts time.Time) error
- type Facing
- type Mode
- type TestFunc
- type TimerOption
Constants ¶
View Source
const (
// Apk is the name of the apk of GoogleCameraArc (GCA).
Apk = "GoogleCameraArc.apk"
)
Variables ¶
View Source
var ( // ImagePattern is the filename format of images taken by GCA. // See: google3/java/com/google/android/apps/chromeos/camera/storage/filenamer/FileNamerModule.java ImagePattern = regexp.MustCompile(`^IMG_\d{8}_\d{6}(?:_BURST)?(?:_COVER)?\.\w+$`) // VideoPattern is the filename format of videos taken by GCA. // See: google3/java/com/google/android/apps/chromeos/camera/storage/filenamer/FileNamerModule.java VideoPattern = regexp.MustCompile(`^VID_\d{8}_\d{6}\.\w+$`) )
Functions ¶
func ClickShutterButton ¶
ClickShutterButton clicks the shutter button on the screen. This can be a regular photo shutter button or a recording button.
func RestartApp ¶
RestartApp restarts GCA.
func RunTest ¶
RunTest sets up the device, runs the specified test and tears down the device afterwards.
func SetTimerOption ¶
SetTimerOption sets the countdown timer to the specified timer option.
func SwitchCamera ¶
SwitchCamera synchronously switches the app to the next camera.
func SwitchMode ¶
SwitchMode synchronously switches the current mode of GCA to the specified mode.
Types ¶
type Facing ¶
type Facing int
Facing refers to the direction a camera is facing.
type TimerOption ¶
type TimerOption int
TimerOption refers to the setting of the countdown timer for capturing photos.
const ( // NoTimer option disables the timer. NoTimer TimerOption = iota // ThreeSecondTimer sets the timer to 3 seconds. ThreeSecondTimer // TenSecondTimer sets the timer to 10 seconds. TenSecondTimer )
Click to show internal directories.
Click to hide internal directories.