template <>

class WireSyncClientImpl

Defined at line 1389 of file fidling/gen/src/lib/fake-clock/fidl/fidl/cpp/fidl/fuchsia.testing/cpp/wire_messaging.h

Methods to make a sync FIDL call directly on an unowned handle or a

const reference to a |::fidl::ClientEnd

<

::fuchsia_testing::FakeClock>|,

avoiding setting up a client.

Public Methods

::fidl::WireResult< ::fuchsia_testing::FakeClock::Get> Get ()

Gets the current time.

Allocates 48 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::OneWayStatus RegisterEventInMonotonic (::zx::eventpair && event, ::fidl::basic_time<((zx_clock_t)0)> time)

Registers the event handle `event` to be signaled with `ZX_EVENTPAIR_SIGNALED` when the

provided `time` is reached by the fake monotonic clock.

The `FakeClock` instance will retain this event (even after it's fired) for as long as the

client-side of the provided event pair `event` is open.

Allocates 48 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::OneWayStatus RegisterEventInBoot (::zx::eventpair && event, ::fidl::basic_time<((zx_clock_t)1)> time)

Registers the event handle `event` to be signaled with `ZX_EVENTPAIR_SIGNALED` when the

provided `time` is reached by the fake boot clock.

The `FakeClock` instance will retain this event (even after it's fired) for as long as the

client-side of the provided event pair `event` is open.

Allocates 48 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_testing::FakeClock::RescheduleEventInMonotonic> RescheduleEventInMonotonic (::zx::eventpair && event, ::fidl::basic_time<((zx_clock_t)0)> time)

Reschedules an event to be signalled with `ZX_EVENTPAIR_SIGNALED` at the new deadline in

`time` on the monotonic clock.

`event` is a duplicate of the client-side of the event pair, and it's used to retrieve the

originally registered event through its kernel object identifier.

Allocates 64 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_testing::FakeClock::RescheduleEventInBoot> RescheduleEventInBoot (::zx::eventpair && event, ::fidl::basic_time<((zx_clock_t)1)> time)

Reschedules an event to be signalled with `ZX_EVENTPAIR_SIGNALED` at the new deadline in

`time` on the boot clock.

`event` is a duplicate of the client-side of the event pair, and it's used to retrieve the

originally registered event through its kernel object identifier.

Allocates 64 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_testing::FakeClock::CancelEvent> CancelEvent (::zx::eventpair && event)

Cancels a previously registered event.

`event` is a duplicate of the client-side of the event pair, and it's used to retrieve the

originally registered event through its kernel object identifier.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_testing::FakeClock::CreateNamedDeadlineInMonotonic> CreateNamedDeadlineInMonotonic (const ::fuchsia_testing_deadline::wire::DeadlineId & id, int64_t duration)

Calculate and set a deadline associated with an id on the monotonic clock.

The returned `deadline` is calculated as `duration` after the current fake time.

FakeClock emits two events: A `SET` event immediately, and an `EXPIRED` event when the

deadline expires. A test using `FakeClockControl` may reference events related to the

deadline using a matching `id`. See `FakeClockControl.SetStopPoint` for information on how a

test can wait for a deadline event.

Allocates 24 bytes of response buffer on the stack. Request is heap-allocated.

::fidl::WireResult< ::fuchsia_testing::FakeClock::CreateNamedDeadlineInBoot> CreateNamedDeadlineInBoot (const ::fuchsia_testing_deadline::wire::DeadlineId & id, int64_t duration)

Calculate and set a deadline associated with an id on the boot clock.

The returned `deadline` is calculated as `duration` after the current fake time.

FakeClock emits two events: A `SET` event immediately, and an `EXPIRED` event when the

deadline expires. A test using `FakeClockControl` may reference events related to the

deadline using a matching `id`. See `FakeClockControl.SetStopPoint` for information on how a

test can wait for a deadline event.

Allocates 24 bytes of response buffer on the stack. Request is heap-allocated.