Lines Matching refs:frac
39 #define DISTRIBUTE_TIMEOUT_SECONDCHANCE_MS_FRAC(msec, frac) \ argument
40 std::chrono::milliseconds(int((msec) * (frac)) + 1), \
41 std::chrono::milliseconds(int((msec) * (1.f - (frac))))
50 const auto frac = GetParam(); in testBasic() local
56 taskRan = true; }, DISTRIBUTE_TIMEOUT_SECONDCHANCE_MS_FRAC(100, frac)); in testBasic()
68 const auto frac = GetParam(); in testCancel() local
74 taskRan = true; }, DISTRIBUTE_TIMEOUT_SECONDCHANCE_MS_FRAC(100, frac)); in testCancel()
87 const auto frac = GetParam(); in testCancelAfterRun() local
95 DISTRIBUTE_TIMEOUT_SECONDCHANCE_MS_FRAC(100, frac)); in testCancelAfterRun()
106 const auto frac = GetParam(); in testMultipleTasks() local
114 taskRan[0] = true; }, DISTRIBUTE_TIMEOUT_SECONDCHANCE_MS_FRAC(300, frac)); in testMultipleTasks()
116 taskRan[1] = true; }, DISTRIBUTE_TIMEOUT_SECONDCHANCE_MS_FRAC(100, frac)); in testMultipleTasks()
118 taskRan[2] = true; }, DISTRIBUTE_TIMEOUT_SECONDCHANCE_MS_FRAC(200, frac)); in testMultipleTasks()
120 taskRan[3] = true; }, DISTRIBUTE_TIMEOUT_SECONDCHANCE_MS_FRAC(400, frac)); in testMultipleTasks()
122 taskRan[4] = true; }, DISTRIBUTE_TIMEOUT_SECONDCHANCE_MS_FRAC(200, frac)); in testMultipleTasks()
124 taskRan[5] = true; }, DISTRIBUTE_TIMEOUT_SECONDCHANCE_MS_FRAC(200, frac)); in testMultipleTasks()