Lines Matching refs:num_tasks

200   int num_tasks = 1;
204 FROM_HERE, new RecordRunTimeTask(&run_time, &num_tasks), kDelayMS);
210 EXPECT_EQ(0, num_tasks);
219 int num_tasks = 2;
223 FROM_HERE, new RecordRunTimeTask(&run_time1, &num_tasks), 200);
227 FROM_HERE, new RecordRunTimeTask(&run_time2, &num_tasks), 10);
230 EXPECT_EQ(0, num_tasks);
248 int num_tasks = 2;
252 FROM_HERE, new RecordRunTimeTask(&run_time1, &num_tasks), kDelayMS);
254 FROM_HERE, new RecordRunTimeTask(&run_time2, &num_tasks), kDelayMS);
257 EXPECT_EQ(0, num_tasks);
271 int num_tasks = 2;
275 FROM_HERE, new SlowTask(kPauseMS, &num_tasks));
277 FROM_HERE, new RecordRunTimeTask(&run_time, &num_tasks), 10);
283 EXPECT_EQ(0, num_tasks);
298 int num_tasks = 11;
302 for (int i = 1; i < num_tasks; ++i)
303 loop.PostTask(FROM_HERE, new RecordRunTimeTask(&run_time1, &num_tasks));
306 FROM_HERE, new RecordRunTimeTask(&run_time2, &num_tasks), 1);
309 EXPECT_EQ(0, num_tasks);
320 // By setting num_tasks to 1, we ensure that the first task to run causes the
322 int num_tasks = 1;
326 FROM_HERE, new RecordRunTimeTask(&run_time1, &num_tasks), 1000000);
328 FROM_HERE, new RecordRunTimeTask(&run_time2, &num_tasks), 10);
333 EXPECT_EQ(0, num_tasks);
379 // By setting num_tasks to 1, we ensure that the first task to run causes the
381 int num_tasks = 1;
388 FROM_HERE, new RecordRunTimeTask(&run_time, &num_tasks), 1000000);
397 EXPECT_EQ(1, num_tasks);
1523 explicit DummyTask(int num_tasks) : num_tasks_(num_tasks) {}
1541 explicit DummyTaskObserver(int num_tasks)
1544 num_tasks_(num_tasks) {}