tree: 1ca3505d4f61a98c6dec2a129efa79ecd636dc88 [path history] [tgz]
  1. doc.go
  2. find_local_device.go
  3. README.md
  4. store_capture.go
integration/replay/utils/README.md

utils


import "android.googlesource.com/platform/tools/gpu/integration/replay/utils"

Package utils contains utilities for replay integration tests.

Usage

func FindLocalDevice

func FindLocalDevice(t *testing.T, mgr *replay.Manager) replay.Device

FindLocalDevice returns the replay Device for the local host. If the local host cannot be found then the test fails and nil is returned.

func NewInMemoryDatabase

func NewInMemoryDatabase() database.Database

NewInMemoryDatabase returns a partial implementation of Database, keeping all entries in-memory.

func StoreCapture

func StoreCapture(t *testing.T, atoms atom.List, db database.Database, l log.Logger) service.CaptureId

StoreCapture encodes and writes the atom list to the database, returning an identifier to the newly constructed and stored Capture.