Home
last modified time | relevance | path

Searched refs:test_clock_ (Results 1 – 4 of 4) sorted by relevance

/external/libweave/src/test/
Dfake_task_runner.cc21 FakeTaskRunner::FakeTaskRunner() : test_clock_{new TestClock} {} in FakeTaskRunner()
30 test_clock_->SetNow(std::max(test_clock_->Now(), top.first.first)); in RunOnce()
46 return test_clock_.get(); in GetClock()
52 queue_.emplace(std::make_pair(test_clock_->Now() + delay, ++counter_), task); in PostDelayedTask()
/external/libbrillo/brillo/message_loops/
Dfake_message_loop.cc13 : test_clock_(clock) { in FakeMessageLoop()
23 if (test_clock_) in PostDelayedTask()
24 current_time_ = test_clock_->Now(); in PostDelayedTask()
59 if (test_clock_) in RunOnce()
60 current_time_ = test_clock_->Now(); in RunOnce()
105 if (test_clock_) in RunOnce()
106 test_clock_->SetNow(current_time_); in RunOnce()
Dfake_message_loop.h89 base::SimpleTestClock* test_clock_ = nullptr; variable
/external/libweave/include/weave/provider/test/
Dfake_task_runner.h53 std::unique_ptr<TestClock> test_clock_; variable