5#include <gtest/gtest.h>
9#include "flutter/fml/task_runner.h"
10#include "flutter/shell/common/thread_host.h"
20TEST(VSyncWaiterFuchsia, FrameScheduledForStartTime) {
22 std::string
prefix =
"vsync_waiter_test";
27 ThreadHost thread_host =
29 flutter::ThreadHost::Type::kUi |
30 flutter::ThreadHost::Type::kIo);
34 thread_host.raster_thread->GetTaskRunner(),
35 thread_host.ui_thread->GetTaskRunner(),
36 thread_host.io_thread->GetTaskRunner()
48 nullptr, task_runners);
52 vsync_waiter.AsyncWaitForVsync(
53 [&](std::unique_ptr<flutter::FrameTimingsRecorder> recorder) {
55 EXPECT_GT(now, recorder->GetVsyncStartTime());
fml::RefPtr< fml::TaskRunner > GetUITaskRunner() const
static void EnsureInitializedForCurrentThread()
fml::RefPtr< fml::TaskRunner > GetTaskRunner() const
static FML_EMBEDDER_ONLY MessageLoop & GetCurrent()
virtual void PostTask(const fml::closure &task) override
static constexpr TimeDelta FromMilliseconds(int64_t millis)
@ kRaster
Suitable for thread which raster data.
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
std::function< void(fml::TimePoint, fml::TimePoint)> FireCallbackCallback
TEST(RunnerTZDataTest, LoadsWithoutTZDataPresent)
The collection of all the threads used by the engine.