Lines Matching refs:scheduler
25 auto scheduler = std::unique_ptr<marl::Scheduler>( in TEST_F() local
30 auto scheduler = std::unique_ptr<marl::Scheduler>( in TEST_F() local
32 scheduler->bind(); in TEST_F()
34 ASSERT_EQ(scheduler.get(), got); in TEST_F()
35 scheduler->unbind(); in TEST_F()
44 auto scheduler = std::unique_ptr<marl::Scheduler>(new marl::Scheduler(cfg)); in TEST_F() local
46 auto gotCfg = scheduler->config(); in TEST_F()
57 auto scheduler = marl::Scheduler::get(); in TEST_P() local
58 scheduler->unbind(); in TEST_P()
59 delete scheduler; in TEST_P()
86 auto scheduler = marl::Scheduler::get(); in TEST_P() local
87 scheduler->unbind(); in TEST_P()
88 delete scheduler; in TEST_P()
129 auto scheduler = marl::Scheduler::get(); in TEST_P() local
140 scheduler->bind(); in TEST_P()
141 defer(scheduler->unbind()); in TEST_P()
163 auto scheduler = std::unique_ptr<marl::Scheduler>(new marl::Scheduler(cfg)); in TEST_F() local
164 scheduler->bind(); in TEST_F()
165 defer(scheduler->unbind()); in TEST_F()
189 auto scheduler = std::unique_ptr<marl::Scheduler>(new marl::Scheduler(cfg)); in TEST_F() local
196 scheduler->enqueue(marl::Task([event, wg] { in TEST_F()
201 scheduler->enqueue(marl::Task([event, &scheduler] { in TEST_F()
204 ASSERT_EQ(marl::Scheduler::get(), scheduler.get()); in TEST_F()
219 auto scheduler = std::unique_ptr<marl::Scheduler>(new marl::Scheduler(cfg)); in TEST_F() local
222 EXPECT_DEATH(scheduler->enqueue(marl::Task([] {})), in TEST_F()
225 scheduler->enqueue(marl::Task([] { FAIL() << "Should not be called"; })); in TEST_F()