Home
last modified time | relevance | path

Searched refs:testExecutor (Results 1 – 2 of 2) sorted by relevance

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DWrappingExecutorServiceTest.java49 TestExecutor testExecutor = new TestExecutor(mock); in testDelegations() local
50 assertFalse(testExecutor.awaitTermination(10, TimeUnit.MILLISECONDS)); in testDelegations()
52 assertFalse(testExecutor.isTerminated()); in testDelegations()
54 assertFalse(testExecutor.isShutdown()); in testDelegations()
56 testExecutor.shutdown(); in testDelegations()
58 List<Runnable> list = testExecutor.shutdownNow(); in testDelegations()
65 TestExecutor testExecutor = new TestExecutor(mock); in testExecute() local
66 testExecutor.execute(doNothing()); in testExecute()
73 TestExecutor testExecutor = new TestExecutor(mock); in testSubmit() local
74 Future<?> f = testExecutor.submit(doNothing()); in testSubmit()
[all …]
DWrappingScheduledExecutorServiceTest.java46 TestExecutor testExecutor = new TestExecutor(mock); in testSchedule() local
48 testExecutor.schedule(DO_NOTHING, 10, TimeUnit.MINUTES); in testSchedule()
51 testExecutor.schedule(Executors.callable(DO_NOTHING), 5, TimeUnit.SECONDS); in testSchedule()
57 TestExecutor testExecutor = new TestExecutor(mock); in testSchedule_repeating() local
58 testExecutor.scheduleWithFixedDelay(DO_NOTHING, 100, 10, TimeUnit.MINUTES); in testSchedule_repeating()
61 testExecutor.scheduleAtFixedRate(DO_NOTHING, 3, 7, TimeUnit.SECONDS); in testSchedule_repeating()