1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
base / task / sequence_manager / test / mock_time_domain.cc [blame]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/task/sequence_manager/test/mock_time_domain.h"
#include <optional>
namespace base {
namespace sequence_manager {
MockTimeDomain::MockTimeDomain(TimeTicks initial_now_ticks)
: now_ticks_(initial_now_ticks) {}
MockTimeDomain::~MockTimeDomain() = default;
TimeTicks MockTimeDomain::NowTicks() const {
return now_ticks_;
}
void MockTimeDomain::SetNowTicks(TimeTicks now_ticks) {
now_ticks_ = now_ticks;
}
bool MockTimeDomain::MaybeFastForwardToWakeUp(
std::optional<WakeUp> next_wake_up,
bool quit_when_idle_requested) {
return false;
}
const char* MockTimeDomain::GetName() const {
return "MockTimeDomain";
}
} // namespace sequence_manager
} // namespace base