Home
last modified time | relevance | path

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

/tools/tradefederation/core/javatests/com/android/tradefed/command/
DCommandRunnerTest.java32 import com.android.tradefed.device.MockDeviceManager;
294 doReturn(new MockDeviceManager(1)).when(mockScheduler).getDeviceManager(); in testRun_noDevice()
DCommandSchedulerFuncTest.java36 import com.android.tradefed.device.MockDeviceManager;
77 private MockDeviceManager mMockDeviceManager;
111 mMockDeviceManager = new MockDeviceManager(1); in setUp()
DCommandSchedulerTest.java57 import com.android.tradefed.device.MockDeviceManager;
114 private MockDeviceManager mFakeDeviceManager;
206 mFakeDeviceManager = new MockDeviceManager(0); in setUp()
414 ((MockDeviceManager) manager).addDevice(mockDevice);
415 allocated.put("device", ((MockDeviceManager) manager).allocateDevice());
1566 ((MockDeviceManager) manager).addDevice(mockDevice); in testExecCommand_versioning()
1567 allocated.put("device", ((MockDeviceManager) manager).allocateDevice()); in testExecCommand_versioning()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DMockDeviceManager.java41 public class MockDeviceManager implements IDeviceManager { class
55 public MockDeviceManager(int numDevices) { in MockDeviceManager() method in MockDeviceManager
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/
DClusterCommandSchedulerTest.java48 import com.android.tradefed.device.MockDeviceManager;
928 private IDeviceManager manager = new MockDeviceManager(1);
1000 assertEquals(0, ((MockDeviceManager) m).getQueueOfAvailableDeviceSize());
1009 assertEquals(1, ((MockDeviceManager) m).getQueueOfAvailableDeviceSize());
1042 assertEquals(0, ((MockDeviceManager) m).getQueueOfAvailableDeviceSize());
1048 assertEquals(1, ((MockDeviceManager) m).getQueueOfAvailableDeviceSize());