Searched refs:shard1 (Results 1 – 5 of 5) sorted by relevance
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
D | ShardMainResultForwarderTest.java | 72 InvocationContext shard1 = new InvocationContext(); in testForwardBuildInfo() local 74 shard1.addAllocatedDevice("device1", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo() 75 shard1.addDeviceBuildInfo("device1", shardBuild1); in testForwardBuildInfo() 85 mShardPrimary.invocationStarted(shard1); in testForwardBuildInfo() 111 InvocationContext shard1 = new InvocationContext(); in testForwardBuildInfo_multiDevice() local 113 shard1.addAllocatedDevice("device1", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo_multiDevice() 114 shard1.addDeviceBuildInfo("device1", shardBuild1); in testForwardBuildInfo_multiDevice() 118 shard1.addAllocatedDevice("device2", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo_multiDevice() 119 shard1.addDeviceBuildInfo("device2", shardBuild1_2); in testForwardBuildInfo_multiDevice() 134 mShardPrimary.invocationStarted(shard1); in testForwardBuildInfo_multiDevice()
|
D | TestInvocationTest.java | 1285 IRemoteTest shard1 = EasyMock.createMock(IRemoteTest.class); in testInvoke_shardableTest_legacy() local 1287 shards.add(shard1); in testInvoke_shardableTest_legacy() 1325 replayMocks(test, mockRescheduler, shard1, shard2, mGlobalConfiguration); in testInvoke_shardableTest_legacy() 1327 verifyMocks(test, mockRescheduler, shard1, shard2, mGlobalConfiguration); in testInvoke_shardableTest_legacy() 1350 IRemoteTest shard1 = EasyMock.createMock(IRemoteTest.class); in testInvoke_shardableTest_autoRetry() local 1352 shards.add(shard1); in testInvoke_shardableTest_autoRetry() 1398 replayMocks(test, mockRescheduler, shard1, shard2, mGlobalConfiguration, logSaverListener); in testInvoke_shardableTest_autoRetry() 1400 verifyMocks(test, mockRescheduler, shard1, shard2, mGlobalConfiguration, logSaverListener); in testInvoke_shardableTest_autoRetry()
|
D | ShardListenerTest.java | 324 ShardListener shard1 = new ShardListener(mainForwarder); in testLogOrderingForSharding() local 326 new LogSaverResultForwarder(mMockSaver, Arrays.asList(shard1)); in testLogOrderingForSharding()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | JarHostTestTest.java | 154 IRemoteTest shard1 = tests.get(0); in testSplit_withJar() local 155 assertTrue(shard1 instanceof HostTest); in testSplit_withJar() 156 ((HostTest) shard1).setBuild(new BuildInfo()); in testSplit_withJar() 157 ((HostTest) shard1).setDevice(device); in testSplit_withJar() 158 assertEquals(28, ((HostTest) shard1).countTestCases()); in testSplit_withJar() 159 total += ((HostTest) shard1).countTestCases(); in testSplit_withJar()
|
D | InstalledInstrumentationsTestTest.java | 155 InstalledInstrumentationsTest shard1 = createInstalledInstrumentationsTest(); in testShardedRun() local 156 shard1.setDevice(mMockTestDevice); in testShardedRun() 157 shard1.setShardIndex(1); in testShardedRun() 158 shard1.setTotalShards(2); in testShardedRun() 172 shard1.run(mTestInfo, mMockListener); in testShardedRun()
|