Searched refs:currentThreadExecutor (Results 1 – 1 of 1) sorted by relevance
137 private FakeExecutor currentThreadExecutor = new FakeExecutor(); field in MdnsServiceTypeClientTests251 return new MdnsServiceTypeClient(SERVICE_TYPE, mockSocketClient, currentThreadExecutor, in makeMdnsServiceTypeClient()622 Runnable firstMdnsTask = currentThreadExecutor.getAndClearSubmittedRunnable(); in testIfPreviousTaskIsCanceledWhenNewSessionStarts()634 currentThreadExecutor.getAndClearLastScheduledRunnable(); in testIfPreviousTaskIsCanceledWhenNewSessionStarts()641 assertNull(currentThreadExecutor.getAndClearLastScheduledRunnable()); in testIfPreviousTaskIsCanceledWhenNewSessionStarts()654 currentThreadExecutor.getAndClearLastScheduledRunnable(); in testIfPreviousTaskIsCanceledWhenSessionStops()658 currentThreadExecutor.getAndClearSubmittedRunnable().run(); in testIfPreviousTaskIsCanceledWhenSessionStops()661 assertNull(currentThreadExecutor.getAndClearLastScheduledRunnable()); in testIfPreviousTaskIsCanceledWhenSessionStops()668 assertNotNull(currentThreadExecutor.getAndClearSubmittedRunnable()); in testQueryScheduledWhenAnsweredFromCache()685 assertNull(currentThreadExecutor.getAndClearSubmittedRunnable()); in testQueryScheduledWhenAnsweredFromCache()[all …]