Home
last modified time | relevance | path

Searched refs:wasRun (Results 1 – 12 of 12) 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/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.cpp222 bool wasRun; member in llvm::legacy::FunctionPassManagerImpl
227 PMTopLevelManager(new FPPassManager()), wasRun(false) {} in FunctionPassManagerImpl()
1467 if (!wasRun) in releaseMemoryOnTheFly()
1475 wasRun = false; in releaseMemoryOnTheFly()
1493 wasRun = true; in run()