Flutter Engine
flutter_runner_test::VsyncWaiterTest Class Reference
Inheritance diagram for flutter_runner_test::VsyncWaiterTest:

Public Member Functions

 VsyncWaiterTest ()
 
 ~VsyncWaiterTest ()=default
 
std::unique_ptr< flutter::VsyncWaiterCreateVsyncWaiter (flutter::TaskRunners task_runners)
 
void SignalVsyncEvent ()
 

Protected Member Functions

void SetUp () override
 

Detailed Description

Definition at line 24 of file vsync_waiter_unittests.cc.

Constructor & Destructor Documentation

◆ VsyncWaiterTest()

flutter_runner_test::VsyncWaiterTest::VsyncWaiterTest ( )
inline

Definition at line 26 of file vsync_waiter_unittests.cc.

References ~VsyncWaiterTest().

26 {}

◆ ~VsyncWaiterTest()

flutter_runner_test::VsyncWaiterTest::~VsyncWaiterTest ( )
default

Referenced by VsyncWaiterTest().

Member Function Documentation

◆ CreateVsyncWaiter()

std::unique_ptr<flutter::VsyncWaiter> flutter_runner_test::VsyncWaiterTest::CreateVsyncWaiter ( flutter::TaskRunners  task_runners)
inline

Definition at line 30 of file vsync_waiter_unittests.cc.

References fml::TimeDelta::Zero().

Referenced by flutter_runner_test::TEST_F().

31  {
32  return std::make_unique<flutter_runner::VsyncWaiter>(
33  "VsyncWaiterTest", vsync_event_.get(), task_runners,
35  }
static constexpr TimeDelta Zero()
Definition: time_delta.h:33

◆ SetUp()

void flutter_runner_test::VsyncWaiterTest::SetUp ( )
inlineoverrideprotected

Definition at line 45 of file vsync_waiter_unittests.cc.

References event.

45  {
46  auto status = zx::event::create(0, &vsync_event_);
47  EXPECT_EQ(status, ZX_OK);
48  }

◆ SignalVsyncEvent()

void flutter_runner_test::VsyncWaiterTest::SignalVsyncEvent ( )
inline

Definition at line 37 of file vsync_waiter_unittests.cc.

References flutter_runner::VsyncWaiter::SessionPresentSignal.

Referenced by flutter_runner_test::TEST_F().

37  {
38  auto status =
39  zx_object_signal(vsync_event_.get(), 0,
41  EXPECT_EQ(status, ZX_OK);
42  }
static constexpr zx_signals_t SessionPresentSignal
Definition: vsync_waiter.h:21

The documentation for this class was generated from the following file: