Home
last modified time | relevance | path

Searched refs:mRescheduler (Results 1 – 3 of 3) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DShardHelperTest.java79 private IRescheduler mRescheduler; field in ShardHelperTest
109 mRescheduler = Mockito.mock(IRescheduler.class); in setUp()
138 assertTrue(mHelper.shardConfig(mConfig, mContext, mRescheduler)); in testSplitWithShardCount()
140 Mockito.verify(mRescheduler, Mockito.times(3)) in testSplitWithShardCount()
164 assertTrue(mHelper.shardConfig(mConfig, mContext, mRescheduler)); in testSplit_noShardCount()
166 Mockito.verify(mRescheduler, Mockito.times(5)) in testSplit_noShardCount()
196 assertTrue(mHelper.shardConfig(mConfig, mContext, mRescheduler)); in testSplitWithShardCount_notEnoughTest()
200 Mockito.verify(mRescheduler, Mockito.times(5)) in testSplitWithShardCount_notEnoughTest()
241 assertTrue(mHelper.shardConfig(mConfig, mContext, mRescheduler)); in testCloneStatusChecker()
243 Mockito.verify(mRescheduler, Mockito.times(3)) in testCloneStatusChecker()
[all …]
DStrictShardHelperTest.java69 private IRescheduler mRescheduler; field in StrictShardHelperTest
77 mRescheduler = Mockito.mock(IRescheduler.class); in setUp()
95 assertTrue(mHelper.shardConfig(mConfig, mContext, mRescheduler)); in testShardConfig_internal()
97 Mockito.verify(mRescheduler, Mockito.times(5)) in testShardConfig_internal()
124 assertFalse(mHelper.shardConfig(mConfig, mContext, mRescheduler)); in testShardConfig_internal_shardIndex()
126 Mockito.verify(mRescheduler, Mockito.times(0)).scheduleConfig(Mockito.any()); in testShardConfig_internal_shardIndex()
155 assertFalse(mHelper.shardConfig(mConfig, mContext, mRescheduler)); in testShardConfig_internal_shardIndex_notShardable_shard0()
157 Mockito.verify(mRescheduler, Mockito.times(0)).scheduleConfig(Mockito.any()); in testShardConfig_internal_shardIndex_notShardable_shard0()
186 assertFalse(mHelper.shardConfig(mConfig, mContext, mRescheduler)); in testShardConfig_internal_shardIndex_notShardable_shard1()
188 Mockito.verify(mRescheduler, Mockito.times(0)).scheduleConfig(Mockito.any()); in testShardConfig_internal_shardIndex_notShardable_shard1()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/
DRetryRescheduler.java92 private IRescheduler mRescheduler; field in RetryRescheduler
174 if (mRescheduler != null) { in run()
176 boolean res = mRescheduler.scheduleConfig(originalConfig); in run()
185 mRescheduler = rescheduler; in setRescheduler()