Home
last modified time | relevance | path

Searched refs:wasRun (Results 1 – 22 of 22) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowHandlerTest.java107 assertThat(scratchRunnable.wasRun).isTrue(); in testPostAndIdleMainLooper()
114 assertThat(scratchRunnable.wasRun).isFalse(); in postDelayedThenIdleMainLooper_shouldNotRunRunnable()
121 assertThat(scratchRunnable.wasRun).isTrue(); in testPostDelayedThenRunMainLooperOneTask()
134 assertThat(scratchRunnable.wasRun).isFalse(); in testRemoveCallbacks()
141 assertThat(scratchRunnable.wasRun).isTrue(); in testPostDelayedThenRunMainLooperToNextTask_shouldRunOneTask()
153 assertThat(task1.wasRun).isTrue(); in testPostDelayedTwiceThenRunMainLooperToNextTask_shouldRunMultipleTasks()
154 assertThat(task2.wasRun).isTrue(); in testPostDelayedTwiceThenRunMainLooperToNextTask_shouldRunMultipleTasks()
166 assertThat(task1.wasRun).isTrue(); in testPostDelayedTwiceThenRunMainLooperOneTask_shouldRunOnlyOneTask()
167 assertThat(task2.wasRun).isFalse(); in testPostDelayedTwiceThenRunMainLooperOneTask_shouldRunOnlyOneTask()
181 assertThat(task1.wasRun).isTrue(); in testPostDelayedMultipleThenRunMainLooperOneTask_shouldRunMultipleTask()
[all …]
DShadowLooperTest.java105 final boolean[] wasRun = new boolean[]{false}; in idleMainLooper_executesScheduledTasks()
109 wasRun[0] = true; in idleMainLooper_executesScheduledTasks()
113 assertThat(wasRun[0]).named("first").isFalse(); in idleMainLooper_executesScheduledTasks()
115 assertThat(wasRun[0]).named("second").isFalse(); in idleMainLooper_executesScheduledTasks()
117 assertThat(wasRun[0]).named("last").isTrue(); in idleMainLooper_executesScheduledTasks()
123 final boolean[] wasRun = new boolean[]{false}; in idleConstantly_runsPostDelayedTasksImmediately()
127 wasRun[0] = true; in idleConstantly_runsPostDelayedTasksImmediately()
131 assertThat(wasRun[0]).isTrue(); in idleConstantly_runsPostDelayedTasksImmediately()
DShadowViewTest.java296 assertFalse(runnable.wasRun); in shouldPostActionsToTheMessageQueue()
299 assertTrue(runnable.wasRun); in shouldPostActionsToTheMessageQueue()
320 assertFalse(runnable.wasRun); in shouldPostActionsToTheMessageQueueWithDelay()
323 assertTrue(runnable.wasRun); in shouldPostActionsToTheMessageQueueWithDelay()
334 assertThat(runnable.wasRun).isFalse(); in shouldRemovePostedCallbacksFromMessageQueue()
DShadowActivityTest.java308 assertTrue(runnable.wasRun); in shouldRunUiTasksImmediatelyByDefault()
318 assertFalse(runnable.wasRun); in shouldQueueUiTasksWhenUiThreadIsPaused()
321 assertTrue(runnable.wasRun); in shouldQueueUiTasksWhenUiThreadIsPaused()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DRobolectricTest.java83 final boolean[] wasRun = new boolean[]{false}; in idleMainLooper_executesScheduledTasks()
87 wasRun[0] = true; in idleMainLooper_executesScheduledTasks()
91 assertFalse(wasRun[0]); in idleMainLooper_executesScheduledTasks()
93 assertFalse(wasRun[0]); in idleMainLooper_executesScheduledTasks()
95 assertTrue(wasRun[0]); in idleMainLooper_executesScheduledTasks()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DJdkFutureAdaptersTest.java210 final CountDownLatch wasRun = new CountDownLatch(1); field in JdkFutureAdaptersTest.RecordingRunnable
215 checkState(wasRun.getCount() > 0); in run()
216 wasRun.countDown(); in run()
242 assertTrue(earlyListener.wasRun.await(1, SECONDS)); in testListenInPoolThreadRunsListenerAfterRuntimeException()
247 assertTrue(lateListener.wasRun.await(1, SECONDS)); in testListenInPoolThreadRunsListenerAfterRuntimeException()
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/
DTestRunnable.java4 public boolean wasRun = false; field in TestRunnable
7 wasRun = true; in run()
/external/robolectric-shadows/utils/src/test/java/org/robolectric/util/
DSchedulerTest.java251 assertThat(runnable.wasRun).isFalse(); in remove_ShouldRemoveAllInstancesOfRunnableFromQueue()
261 assertThat(runnable.wasRun).isFalse(); in reset_shouldUnPause()
265 assertThat(runnable.wasRun).isTrue(); in reset_shouldUnPause()
275 assertThat(runnable1.wasRun).isFalse(); in reset_shouldClearPendingRunnables()
282 assertThat(runnable1.wasRun).isFalse(); in reset_shouldClearPendingRunnables()
283 assertThat(runnable2.wasRun).isTrue(); in reset_shouldClearPendingRunnables()
/external/python/cpython2/Lib/unittest/test/
Dtest_program.py17 self.wasRun = False
19 self.wasRun = True
24 self.assertTrue(self.wasRun)
Dtest_discovery.py387 self.wasRun = False
389 self.wasRun = True
394 self.assertTrue(self.wasRun)
/external/testng/src/test/java/test/factory/
DMyTest.java27 assert FactoryInSeparateClass.wasRun() : "Test method on factory class wasn't run"; in verifyThatTestMethodOnFactoryClassWasRun()
DFactoryInSeparateClass.java41 public static boolean wasRun() { in wasRun() method in FactoryInSeparateClass
/external/python/cpython3/Lib/unittest/test/
Dtest_program.py19 self.wasRun = False
21 self.wasRun = True
26 self.assertTrue(self.wasRun)
Dtest_discovery.py787 self.wasRun = False
789 self.wasRun = True
794 self.assertTrue(self.wasRun)
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/
DActivityControllerTest.java69 assertThat(activity.r1.wasRun).named("immediate task").isTrue(); in pendingTasks_areRunEagerly_whenActivityIsStarted_andSchedulerUnPaused()
79 assertThat(activity.r2.wasRun).named("before flush").isFalse(); in delayedTasks_areNotRunEagerly_whenActivityIsStarted_andSchedulerUnPaused()
82 assertThat(activity.r2.wasRun).named("after flush").isTrue(); in delayedTasks_areNotRunEagerly_whenActivityIsStarted_andSchedulerUnPaused()
/external/llvm/lib/IR/
DLegacyPassManager.cpp235 bool wasRun; member in llvm::legacy::FunctionPassManagerImpl
240 PMTopLevelManager(new FPPassManager()), wasRun(false) {} in FunctionPassManagerImpl()
1456 if (!wasRun) in releaseMemoryOnTheFly()
1464 wasRun = false; in releaseMemoryOnTheFly()
1482 wasRun = true; in run()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DPassManager.cpp227 bool wasRun; member in llvm::FunctionPassManagerImpl
232 PMTopLevelManager(new FPPassManager()), wasRun(false) {} in FunctionPassManagerImpl()
1442 if (!wasRun) in releaseMemoryOnTheFly()
1450 wasRun = false; in releaseMemoryOnTheFly()
1467 wasRun = true; in run()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DLegacyPassManager.cpp292 bool wasRun; member in llvm::legacy::FunctionPassManagerImpl
297 PMTopLevelManager(new FPPassManager()), wasRun(false) {} in FunctionPassManagerImpl()
1513 if (!wasRun) in releaseMemoryOnTheFly()
1521 wasRun = false; in releaseMemoryOnTheFly()
1539 wasRun = true; in run()
/external/slf4j/log4j-over-slf4j/compatibility/lib/
Djunit-3.8.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/awtui/ junit/ ...
/external/guice/lib/build/
Djunit.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/awtui/ junit/ ...
/external/slf4j/integration/lib/
Djunit-3.8.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/awtui/ junit/ ...
/external/jsr330/lib/
Djunit.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/awtui/ junit/ ...