Home | History | Annotate | Download | only in message_loops

Lines Matching defs:callback

48   auto callback = [](std::vector<int>* order, int value) {
51 loop_->PostDelayedTask(Bind(callback, base::Unretained(&order), 1),
53 loop_->PostDelayedTask(Bind(callback, base::Unretained(&order), 4),
55 loop_->PostDelayedTask(Bind(callback, base::Unretained(&order), 3),
57 loop_->PostDelayedTask(Bind(callback, base::Unretained(&order), 2),
71 // If the callback didn't run, the time shouldn't change.
74 // If we run only one callback, the time should be set to the time that
80 // callback without blocking, since the firing time is in the past.
83 // The time should not change even if the callback is due in the past.
91 // ready after 10s and expect its callback to run just once.
98 auto callback = [](FakeMessageLoop* loop) { loop->BreakLoop(); };
101 loop_->PostDelayedTask(Bind(callback, base::Unretained(loop_.get())),
105 loop_->PostDelayedTask(Bind(callback, base::Unretained(loop_.get())),