5#include "flutter/shell/platform/fuchsia/flutter/engine.h"
7#include "flutter/shell/common/thread_host.h"
9#include "gtest/gtest.h"
18 return ::testing::UnitTest::GetInstance()->current_test_info()->name();
23TEST(EngineTest, ThreadNames) {
27 char thread_name[ZX_MAX_NAME_LEN];
30 EXPECT_EQ(std::string(thread_name),
prefix + std::string(
".platform"));
34 char thread_name[ZX_MAX_NAME_LEN];
37 EXPECT_EQ(std::string(thread_name),
prefix + std::string(
".raster"));
42 char thread_name[ZX_MAX_NAME_LEN];
45 EXPECT_EQ(std::string(thread_name),
prefix + std::string(
".ui"));
50 char thread_name[ZX_MAX_NAME_LEN];
53 EXPECT_EQ(std::string(thread_name),
prefix + std::string(
".io"));
static flutter::ThreadHost CreateThreadHost(const std::string &name_prefix, const std::shared_ptr< sys::ServiceDirectory > &runner_services=nullptr)
std::string GetCurrentTestName()
Gets the name of the currently running test. This is useful in generating logs or assets based on tes...
TEST(EngineTest, ThreadNames)
The collection of all the threads used by the engine.
std::unique_ptr< fml::Thread > io_thread
std::unique_ptr< fml::Thread > platform_thread
std::unique_ptr< fml::Thread > raster_thread
std::unique_ptr< fml::Thread > ui_thread