5#define FML_USED_ON_EMBEDDER
7#include "flutter/testing/thread_test.h"
23 return current_task_runner_;
27 const std::string&
name) {
28 auto thread = std::make_unique<fml::Thread>(
name);
29 auto runner = thread->GetTaskRunner();
30 extra_threads_.emplace_back(std::move(thread));
fml::RefPtr< fml::TaskRunner > GetCurrentTaskRunner()
Get the task runner for the thread that the current unit-test is running on. This creates a message l...
fml::RefPtr< fml::TaskRunner > CreateNewThread(const std::string &name="")
Creates a new thread, initializes a message loop on it, and, returns its task runner to the unit-test...
static void EnsureInitializedForCurrentThread()
fml::RefPtr< fml::TaskRunner > GetTaskRunner() const
static FML_EMBEDDER_ONLY MessageLoop & GetCurrent()
DEF_SWITCHES_START aot vmservice shared library name