apploading

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

Documentation

Overview

Package apploading provides functions to assist with instrumenting and uploading performance metrics for ARC apploading tasts.

Index

Constants

View Source
const (
	// NethelperPort is the port used for nethelper to listen for connections.
	NethelperPort = 1235

	// X86ApkName is the name of the ArcAppLoadingTest APK for x86/x86_64 devices.
	X86ApkName = "ArcAppLoadingTest_x86.apk"
	// ArmApkName is the name of the ArcAppLoadingTest APK for Arm devices.
	ArmApkName = "ArcAppLoadingTest_arm.apk"
)

Variables

This section is empty.

Functions

func ApkNameForArch

func ApkNameForArch(ctx context.Context, a *arc.ARC) (string, error)

ApkNameForArch gets the name of the APK file to install on the DUT.

func RunTest

func RunTest(ctx context.Context, config TestConfig, a *arc.ARC, cr *chrome.Chrome) (retScore float64, retErr error)

RunTest executes subset of tests in APK determined by the test class name.

Types

type TestConfig

type TestConfig struct {
	ClassName          string
	Prefix             string
	Subtest            string
	PerfValues         *perf.Values
	WifiInterfacesMode setup.WifiInterfacesMode
	ApkPath            string
	OutDir             string
}

TestConfig defines input params for apploading.RunTest function.

Jump to

Keyboard shortcuts

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