Definition at line 13 of file test_timeout_listener.cc.
◆ ~PendingTests()
flutter::testing::PendingTests::~PendingTests |
( |
| ) |
|
|
default |
◆ CheckTimedOutTests()
void flutter::testing::PendingTests::CheckTimedOutTests |
( |
| ) |
const |
|
inline |
Definition at line 40 of file test_timeout_listener.cc.
40 {
42
43 for (
const auto&
test : tests_) {
44 auto delay = now -
test.second;
46 <<
"Test " <<
test.first <<
" did not complete in "
48 << " seconds and is assumed to be hung. Killing the test harness.";
49 }
50 }
constexpr int64_t ToSeconds() const
#define FML_CHECK(condition)
◆ Create()
Definition at line 15 of file test_timeout_listener.cc.
17 {
18 return std::shared_ptr<PendingTests>(
19 new PendingTests(std::move(host_task_runner),
timeout));
20 }
def timeout(deadline, cmd)
◆ OnTestBegin()
void flutter::testing::PendingTests::OnTestBegin |
( |
const std::string & |
test_name, |
|
|
fml::TimePoint |
test_time |
|
) |
| |
|
inline |
Definition at line 24 of file test_timeout_listener.cc.
24 {
25 FML_CHECK(tests_.find(test_name) == tests_.end())
26 << "Attempting to start a test that is already pending.";
27 tests_[test_name] = test_time;
28
30 [weak = weak_from_this()] {
31 if (auto strong = weak.lock()) {
32 strong->CheckTimedOutTests();
33 }
34 },
35 timeout_);
36 }
virtual void PostDelayedTask(const fml::closure &task, fml::TimeDelta delay)
◆ OnTestEnd()
void flutter::testing::PendingTests::OnTestEnd |
( |
const std::string & |
test_name | ) |
|
|
inline |
The documentation for this class was generated from the following file: