Definition at line 12 of file test_timeout_listener.cc.
◆ ~PendingTests()
| flutter::testing::PendingTests::~PendingTests |
( |
| ) |
|
|
default |
◆ CheckTimedOutTests()
| void flutter::testing::PendingTests::CheckTimedOutTests |
( |
| ) |
const |
|
inline |
◆ Create()
Definition at line 14 of file test_timeout_listener.cc.
16 {
17 return std::shared_ptr<PendingTests>(
18 new PendingTests(std::move(host_task_runner), timeout));
19 }
◆ OnTestBegin()
| void flutter::testing::PendingTests::OnTestBegin |
( |
const std::string & |
test_name, |
|
|
fml::TimePoint |
test_time |
|
) |
| |
|
inline |
Definition at line 23 of file test_timeout_listener.cc.
23 {
24 FML_CHECK(tests_.find(test_name) == tests_.end())
25 << "Attempting to start a test that is already pending.";
26 tests_[test_name] = test_time;
27
29 [weak = weak_from_this()] {
30 if (auto strong = weak.lock()) {
31 strong->CheckTimedOutTests();
32 }
33 },
34 timeout_);
35 }
virtual void PostDelayedTask(const fml::closure &task, fml::TimeDelta delay)
References FML_CHECK, and fml::TaskRunner::PostDelayedTask().
◆ OnTestEnd()
| void flutter::testing::PendingTests::OnTestEnd |
( |
const std::string & |
test_name | ) |
|
|
inline |
The documentation for this class was generated from the following file: