Home
last modified time | relevance | path

Searched refs:OneShotTimer (Results 1 – 25 of 68) sorted by relevance

123

/external/cronet/base/timer/
Dtimer.cc146 OneShotTimer::OneShotTimer() = default;
147 OneShotTimer::OneShotTimer(const TickClock* tick_clock) in OneShotTimer() function in base::OneShotTimer
149 OneShotTimer::~OneShotTimer() = default;
151 void OneShotTimer::Start(const Location& posted_from, in Start()
158 void OneShotTimer::FireNow() { in FireNow()
166 void OneShotTimer::OnStop() { in OnStop()
172 void OneShotTimer::RunUserTask() { in RunUserTask()
182 void OneShotTimer::EnsureNonNullUserTask() { in EnsureNonNullUserTask()
Dtimer.h224 class BASE_EXPORT OneShotTimer : public internal::DelayTimerBase {
226 OneShotTimer();
227 explicit OneShotTimer(const TickClock* tick_clock);
229 OneShotTimer(const OneShotTimer&) = delete;
230 OneShotTimer& operator=(const OneShotTimer&) = delete;
232 ~OneShotTimer() override;
Dtimer_unittest.cc61 OneShotTimer timer; in RunTest_OneShotTimers()
76 auto timer = std::make_unique<OneShotTimer>(); in RunTest_OneShotTimers_Cancel()
96 auto timer = std::make_unique<OneShotTimer>(); in RunTest_OneShotSelfDeletingTimer()
242 OneShotTimer timer; in TEST()
263 OneShotTimer timer(task_environment.GetMockTickClock()); in TEST()
338 OneShotTimer timer; in TEST()
355 auto timer = std::make_unique<OneShotTimer>(); in TEST()
373 auto timer = std::make_unique<OneShotTimer>(); in TEST()
391 OneShotTimer timer; in TEST()
414 OneShotTimer timer; in TEST()
[all …]
Dmock_timer.cc28 : OneShotTimer(&clock_), in MockOneShotTimer()
30 OneShotTimer::SetTaskRunner(test_task_runner_); in MockOneShotTimer()
/external/cronet/base/files/
Dimportant_file_writer.h147 void SetTimerForTesting(OneShotTimer* timer_override);
157 const OneShotTimer& timer() const { in timer()
160 OneShotTimer& timer() { return timer_override_ ? *timer_override_ : timer_; } in timer()
199 OneShotTimer timer_;
202 raw_ptr<OneShotTimer> timer_override_ = nullptr;
/external/libchrome/base/timer/
Dtimer.h239 class BASE_EXPORT OneShotTimer : public Timer {
241 OneShotTimer() : OneShotTimer(nullptr) {} in OneShotTimer() function
242 explicit OneShotTimer(const TickClock* tick_clock) in OneShotTimer() function
Dmock_timer.cc27 : OneShotTimer(&clock_), in MockOneShotTimer()
29 OneShotTimer::SetTaskRunner(test_task_runner_); in MockOneShotTimer()
Dtimer_unittest.cc87 std::unique_ptr<OneShotTimer> timer_ = std::make_unique<OneShotTimer>();
348 OneShotTimer timers[20]; in RunTest_DelayTimer_Reset()
441 OneShotTimer timer(task_runner->GetMockTickClock()); in TEST()
579 OneShotTimer timer_;
744 void CreateTimer() { timer_.reset(new OneShotTimer); } in CreateTimer()
780 std::unique_ptr<OneShotTimer> timer_;
Dmock_timer.h19 class MockOneShotTimer : public OneShotTimer {
/external/cronet/net/reporting/
Dreporting_garbage_collector.cc30 : context_(context), timer_(std::make_unique<base::OneShotTimer>()) { in ReportingGarbageCollectorImpl()
40 void SetTimerForTesting(std::unique_ptr<base::OneShotTimer> timer) override { in SetTimerForTesting()
95 std::unique_ptr<base::OneShotTimer> timer_;
Dreporting_garbage_collector.h13 class OneShotTimer; variable
35 std::unique_ptr<base::OneShotTimer> timer) = 0;
Dreporting_delivery_agent.h15 class OneShotTimer; variable
68 std::unique_ptr<base::OneShotTimer> timer) = 0;
Dreporting_delivery_agent.cc204 timer_(std::make_unique<base::OneShotTimer>()), in ReportingDeliveryAgentImpl()
224 void SetTimerForTesting(std::unique_ptr<base::OneShotTimer> timer) override { in SetTimerForTesting()
404 std::unique_ptr<base::OneShotTimer> timer_;
/external/cronet/net/spdy/
Dbidirectional_stream_spdy_impl.h28 class OneShotTimer; variable
54 std::unique_ptr<base::OneShotTimer> timer,
96 std::unique_ptr<base::OneShotTimer> timer_;
/external/cronet/net/dns/
Dmdns_client_impl.h33 class OneShotTimer; variable
136 Core(base::Clock* clock, base::OneShotTimer* timer);
209 raw_ptr<base::OneShotTimer> cleanup_timer_;
219 std::unique_ptr<base::OneShotTimer> cleanup_timer);
246 std::unique_ptr<base::OneShotTimer> cleanup_timer_;
Dserial_worker.h83 const base::OneShotTimer& GetRetryTimerForTesting() const;
125 base::OneShotTimer retry_timer_;
/external/cronet/net/http/
Dbidirectional_stream.h27 class OneShotTimer; variable
124 std::unique_ptr<base::OneShotTimer> timer);
243 std::unique_ptr<base::OneShotTimer> timer_;
Dbidirectional_stream_impl.h21 class OneShotTimer; variable
110 std::unique_ptr<base::OneShotTimer> timer,
/external/cronet/net/quic/
Dbidirectional_stream_quic_impl.h23 class OneShotTimer; variable
48 std::unique_ptr<base::OneShotTimer> timer,
Dquic_chromium_alarm_factory.cc32 timer_(std::make_unique<base::OneShotTimer>(this)) { in QuicChromeAlarm()
72 const std::unique_ptr<base::OneShotTimer> timer_;
/external/cronet/net/proxy_resolution/
Dpac_file_decider.h206 base::OneShotTimer wait_timer_;
219 base::OneShotTimer quick_check_timer_;
/external/cronet/net/websockets/
Dwebsocket_stream.cc172 void Start(std::unique_ptr<base::OneShotTimer> timer) { in Start()
295 std::unique_ptr<base::OneShotTimer> timer_;
482 request->Start(std::make_unique<base::OneShotTimer>()); in CreateAndConnectStream()
498 std::unique_ptr<base::OneShotTimer> timer, in CreateAndConnectStreamForTesting()
Dwebsocket_stream.h28 class OneShotTimer; variable
183 std::unique_ptr<base::OneShotTimer> timer,
Dwebsocket_stream_create_test_base.cc106 std::unique_ptr<base::OneShotTimer> timer) { in CreateAndConnectStream()
115 timer ? std::move(timer) : std::make_unique<base::OneShotTimer>(), in CreateAndConnectStream()
/external/cronet/components/metrics/
Dmetrics_scheduler.h55 base::OneShotTimer timer_;

123