#include <dart_isolate_runner.h>
Definition at line 20 of file dart_isolate_runner.h.
◆ AutoIsolateShutdown() [1/2]
flutter::testing::AutoIsolateShutdown::AutoIsolateShutdown |
( |
| ) |
|
|
default |
◆ AutoIsolateShutdown() [2/2]
◆ ~AutoIsolateShutdown()
flutter::testing::AutoIsolateShutdown::~AutoIsolateShutdown |
( |
| ) |
|
Definition at line 17 of file dart_isolate_runner.cc.
17 {
18 if (!isolate_->IsShuttingDown()) {
20 }
23
24 isolate_.reset();
26 });
28}
static void RunNowOrPostTask(const fml::RefPtr< fml::TaskRunner > &runner, const fml::closure &task)
◆ get()
DartIsolate * flutter::testing::AutoIsolateShutdown::get |
( |
| ) |
|
|
inline |
Definition at line 36 of file dart_isolate_runner.h.
36 {
38 return isolate_.get();
39 }
#define FML_CHECK(condition)
◆ IsValid()
bool flutter::testing::AutoIsolateShutdown::IsValid |
( |
| ) |
const |
|
inline |
◆ RunInIsolateScope()
bool flutter::testing::AutoIsolateShutdown::RunInIsolateScope |
( |
const std::function< bool(void)> & |
closure | ) |
|
Definition at line 46 of file dart_isolate_runner.cc.
47 {
49 return false;
50 }
51
60 }
62 });
65}
std::function< void()> closure
◆ Shutdown()
void flutter::testing::AutoIsolateShutdown::Shutdown |
( |
| ) |
|
Definition at line 30 of file dart_isolate_runner.cc.
30 {
32 return;
33 }
36 runner_, [isolate = isolate_.get(), &latch]() {
37 if (!isolate->Shutdown()) {
38 FML_LOG(ERROR) << "Could not shutdown isolate.";
39 FML_CHECK(false);
40 }
42 });
44}
The documentation for this class was generated from the following files: