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/ |
D | JobServiceLoggingCallbackTest.java | 26 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()
|
D | IResultSyncCallbackTestCase.java | 76 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()
|
D | IntFailureSyncCallbackTest.java | 45 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.onResult("YES!")); in testAssertSuccess() 60 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.onFailure(42)); in testAssertFailed()
|
D | OnResultSyncCallbackTestCase.java | 37 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.onResult(injectedResult)); in testOnResult()
|
D | FailableResultSyncCallbackTestCase.java | 69 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectResult(injectedResult)); in testInjectResult_checkFailure() 87 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectFailure(failure)); in testInjectFailure()
|
D | OnFailableResultSyncCallbackTestCase.java | 50 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.onFailure(injectedFailure)); in testOnFailure()
|
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/concurrency/ |
D | SyncCallbackTestCase.java | 47 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()
|