Home
last modified time | relevance | path

Searched refs:INJECTION_TIMEOUT_MS (Results 1 – 7 of 7) sorted by relevance

/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/concurrency/
DJobServiceLoggingCallbackTest.java26 private static final long INJECTION_TIMEOUT_MS = 200; field in JobServiceLoggingCallbackTest
27 private static final long CALLBACK_TIMEOUT_MS = INJECTION_TIMEOUT_MS + 400;
37 runAsync(INJECTION_TIMEOUT_MS, () -> callback.onLoggingMethodCalled()); in testCustomMethods()
DIResultSyncCallbackTestCase.java76 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectResult(injectedResult)); in testInjectResult_assertResultReceived()
102 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectResult(injectedResult)); in testInjectNullResult_assertResultReceived()
118 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectResult(injectedResult)); in testInjectResult_assertCalled()
129 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectResult(injectedResult)); in testInjectNullResult_assertCalled()
DIntFailureSyncCallbackTest.java45 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.onResult("YES!")); in testAssertSuccess()
60 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.onFailure(42)); in testAssertFailed()
DOnResultSyncCallbackTestCase.java37 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.onResult(injectedResult)); in testOnResult()
DFailableResultSyncCallbackTestCase.java69 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectResult(injectedResult)); in testInjectResult_checkFailure()
87 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectFailure(failure)); in testInjectFailure()
DOnFailableResultSyncCallbackTestCase.java50 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.onFailure(injectedFailure)); in testOnFailure()
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/concurrency/
DSyncCallbackTestCase.java47 protected static final long INJECTION_TIMEOUT_MS = 200; field in SyncCallbackTestCase
48 protected static final long CALLBACK_TIMEOUT_MS = INJECTION_TIMEOUT_MS + 400;
246 Thread t = runAsync(INJECTION_TIMEOUT_MS, () -> call(callback)); in testAssertCalled()
320 runAsync(INJECTION_TIMEOUT_MS, () -> call(callback)); in testAssertCalled_multipleCalls()
326 runAsync(INJECTION_TIMEOUT_MS, () -> call(callback)); in testAssertCalled_multipleCalls()
453 Thread mainThread = runAsync(INJECTION_TIMEOUT_MS, () -> call(callback)); in testAssertCalled_failsWhenCalledOnMainThread()