CompanionAwareTest

public abstract class CompanionAwareTest
extends Object implements IRemoteTest, IDeviceTest

java.lang.Object
   ↳ com.android.tradefed.testtype.CompanionAwareTest


Base test class that encapsulates boilerpate of getting and checking companion device

Subclass may call getCompanion() to retrieve the allocated companion. Must be used in conjunction with an implementation of CompanionAllocator

Summary

Public constructors

CompanionAwareTest()

Protected methods

ITestDevice getCompanion()

Fetches the companion device allocated for the primary device

Public constructors

CompanionAwareTest

CompanionAwareTest ()

Protected methods

getCompanion

ITestDevice getCompanion ()

Fetches the companion device allocated for the primary device

Returns
ITestDevice the allocated companion device

Throws
RuntimeException if no companion device has been allocated