Home
last modified time | relevance | path

Searched refs:injectedResult (Results 1 – 3 of 3) sorted by relevance

/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/concurrency/
DIResultSyncCallbackTestCase.java74 R injectedResult = newResult(); in testInjectResult_assertResultReceived() local
76 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectResult(injectedResult)); in testInjectResult_assertResultReceived()
81 .isSameInstanceAs(injectedResult); in testInjectResult_assertResultReceived()
88 .isSameInstanceAs(injectedResult); in testInjectResult_assertResultReceived()
91 .containsExactly(injectedResult); in testInjectResult_assertResultReceived()
94 .contains("result=" + injectedResult); in testInjectResult_assertResultReceived()
100 R injectedResult = null; in testInjectNullResult_assertResultReceived() local
102 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectResult(injectedResult)); in testInjectNullResult_assertResultReceived()
110 assertGetResultMethods(mCallback, "after injectResult()", injectedResult); in testInjectNullResult_assertResultReceived()
116 R injectedResult = newResult(); in testInjectResult_assertCalled() local
[all …]
DOnResultSyncCallbackTestCase.java35 R injectedResult = newResult(); in testOnResult() local
37 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.onResult(injectedResult)); in testOnResult()
42 .isSameInstanceAs(injectedResult); in testOnResult()
DFailableResultSyncCallbackTestCase.java67 R injectedResult = null; in testInjectResult_checkFailure() local
69 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectResult(injectedResult)); in testInjectResult_checkFailure()
73 assertGetResultMethods(mCallback, when, injectedResult); in testInjectResult_checkFailure()