Home
last modified time | relevance | path

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

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DHandlerTest.java103 assertThat(scratchRunnable.wasRun, equalTo(true)); in testPostAndIdleMainLooper()
110 assertThat(scratchRunnable.wasRun, equalTo(false)); in postDelayedThenIdleMainLooper_shouldNotRunRunnable()
117 assertThat(scratchRunnable.wasRun, equalTo(true)); in testPostDelayedThenRunMainLooperOneTask()
130 assertThat(scratchRunnable.wasRun, equalTo(false)); in testRemoveCallbacks()
137 assertThat(scratchRunnable.wasRun, equalTo(true)); in testPostDelayedThenRunMainLooperToNextTask_shouldRunOneTask()
149 assertThat(task1.wasRun, equalTo(true)); in testPostDelayedTwiceThenRunMainLooperToNextTask_shouldRunMultipleTasks()
150 assertThat(task2.wasRun, equalTo(true)); in testPostDelayedTwiceThenRunMainLooperToNextTask_shouldRunMultipleTasks()
162 assertThat(task1.wasRun, equalTo(true)); in testPostDelayedTwiceThenRunMainLooperOneTask_shouldRunOnlyOneTask()
163 assertThat(task2.wasRun, equalTo(false)); in testPostDelayedTwiceThenRunMainLooperOneTask_shouldRunOnlyOneTask()
177 assertThat(task1.wasRun, equalTo(true)); in testPostDelayedMultipleThenRunMainLooperOneTask_shouldRunMultipleTask()
[all …]
DLooperTest.java24 final boolean[] wasRun = new boolean[]{false}; in idleMainLooper_executesScheduledTasks()
28 wasRun[0] = true; in idleMainLooper_executesScheduledTasks()
32 assertFalse(wasRun[0]); in idleMainLooper_executesScheduledTasks()
34 assertFalse(wasRun[0]); in idleMainLooper_executesScheduledTasks()
36 assertTrue(wasRun[0]); in idleMainLooper_executesScheduledTasks()
DViewTest.java179 assertFalse(runnable.wasRun); in shouldPostActionsToTheMessageQueue()
182 assertTrue(runnable.wasRun); in shouldPostActionsToTheMessageQueue()
203 assertFalse(runnable.wasRun); in shouldPostActionsToTheMessageQueueWithDelay()
206 assertTrue(runnable.wasRun); in shouldPostActionsToTheMessageQueueWithDelay()
DFragmentManagerTest.java221 assertFalse(otherEnqueuedTask.wasRun); in executePendingTransactions_shouldRunPendingCommitsAsIfTheMainLooperWereNotPaused()
223 assertTrue(otherEnqueuedTask.wasRun); in executePendingTransactions_shouldRunPendingCommitsAsIfTheMainLooperWereNotPaused()
DActivityTest.java172 assertTrue(runnable.wasRun); in shouldRunUiTasksImmediatelyByDefault()
182 assertFalse(runnable.wasRun); in shouldQueueUiTasksWhenUiThreadIsPaused()
185 assertTrue(runnable.wasRun); in shouldQueueUiTasksWhenUiThreadIsPaused()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/util/
DSchedulerTest.java117 assertThat(runnable.wasRun, equalTo(false)); in removeShouldRemoveAllInstancesOfRunnableFromQueue()
127 assertThat(runnable.wasRun, equalTo(false)); in resetShouldUnPause()
131 assertThat(runnable.wasRun, equalTo(true)); in resetShouldUnPause()
141 assertThat(runnable1.wasRun, equalTo(false)); in resetShouldClearPendingRunnables()
148 assertThat(runnable1.wasRun, equalTo(false)); in resetShouldClearPendingRunnables()
149 assertThat(runnable2.wasRun, equalTo(true)); in resetShouldClearPendingRunnables()
DTestRunnable.java4 public boolean wasRun = false; field in TestRunnable
7 wasRun = true; in run()
/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/v1/src/test/java/com/xtremelabs/robolectric/
DRobolectricTest.java128 final boolean[] wasRun = new boolean[]{false}; in idleMainLooper_executesScheduledTasks()
132 wasRun[0] = true; in idleMainLooper_executesScheduledTasks()
136 assertFalse(wasRun[0]); in idleMainLooper_executesScheduledTasks()
138 assertFalse(wasRun[0]); in idleMainLooper_executesScheduledTasks()
140 assertTrue(wasRun[0]); in idleMainLooper_executesScheduledTasks()
/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/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()