Search in sources :

Example 6 with RangingSession

use of android.uwb.RangingSession in project robolectric by robolectric.

the class ShadowRangingSessionTest method stop_notifyAdaptor.

@Test
public void stop_notifyAdaptor() {
    RangingSession session = (RangingSession) rangingSessionObject;
    RangingSession.Callback callback = (RangingSession.Callback) callbackObject;
    session.stop();
    verify(adapter).onStop(eq(session), eq(callback));
}
Also used : RangingSession(android.uwb.RangingSession) Test(org.junit.Test)

Example 7 with RangingSession

use of android.uwb.RangingSession in project robolectric by robolectric.

the class ShadowRangingSessionTest method reconfigure_notifyAdaptor.

@Test
public void reconfigure_notifyAdaptor() {
    RangingSession session = (RangingSession) rangingSessionObject;
    RangingSession.Callback callback = (RangingSession.Callback) callbackObject;
    session.reconfigure(genParams("reconfigure"));
    verify(adapter).onReconfigure(eq(session), eq(callback), argThat(checkParams("reconfigure")));
}
Also used : RangingSession(android.uwb.RangingSession) Test(org.junit.Test)

Aggregations

RangingSession (android.uwb.RangingSession)7 Test (org.junit.Test)5 CancellationSignal (android.os.CancellationSignal)1 Implementation (org.robolectric.annotation.Implementation)1