Home
last modified time | relevance | path

Searched refs:MockTask (Results 1 – 5 of 5) sorted by relevance

/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
DPerNameExecutorTest.java19 import static com.android.quicksearchbox.util.MockTask.assertRanNever;
20 import static com.android.quicksearchbox.util.MockTask.assertRanOnce;
44 MockTask a1 = addTask("a", 1); in testExecute()
45 MockTask a2 = addTask("a", 2); in testExecute()
46 MockTask a3 = addTask("a", 3); in testExecute()
47 MockTask b1 = addTask("b", 1); in testExecute()
63 MockTask a1 = addTask("a", 1); in testCancelPendingTasks()
64 MockTask a2 = addTask("a", 2); in testCancelPendingTasks()
65 MockTask b1 = addTask("b", 1); in testCancelPendingTasks()
77 MockTask a3 = addTask("a" , 3); in testCancelPendingTasks()
[all …]
DMockTask.java24 public class MockTask implements NamedTask { class
29 public MockTask(String name, int id) { in MockTask() method in MockTask
70 public static void assertRanNever(String message, MockTask... tasks) { in assertRanNever()
71 for (MockTask task : tasks) { in assertRanNever()
76 public static void assertRanOnce(String message, MockTask... tasks) { in assertRanOnce()
77 for (MockTask task : tasks) { in assertRanOnce()
DSingleThreadNamedTaskExecutorTest.java41 MockTask a1 = addTask("a", 1); in testExecute()
42 MockTask a2 = addTask("a", 2); in testExecute()
49 private MockTask addTask(String name, int id) { in addTask()
50 MockTask task = new MockTask(name, id); in addTask()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DMockTask.java30 public final class MockTask extends AbstractProvisioningTask { class
37 public MockTask( in MockTask() method in MockTask
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/networkconnection/
DEstablishNetworkConnectionControllerTest.java40 import com.android.managedprovisioning.task.MockTask;
190 return new MockTask(context, provisioningParams, callback, in createConnectMobileNetworkTask()
200 return new MockTask(context, provisioningParams, callback, in createAddWifiNetworkTask()