template <>

class WireSyncBufferClientImpl

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

Public Methods

::fidl::WireUnownedResult< ::fuchsia_testing::FakeClockControl::Advance> Advance (::fuchsia_testing::wire::Increment increment)

Advances the fake clock `increment` once. This advances both monotonic and boot clocks by

the same amount.

Returns `ZX_ERR_INVALID_ARGS` if the provided `increment` is invalid (such as a badly formed

RandomRange). Returns `ZX_ERR_ACCESS_DENIED` if called while the FakeClock is free-running.

Caller provides the backing storage for FIDL message via an argument to `.buffer()`.

::fidl::WireUnownedResult< ::fuchsia_testing::FakeClockControl::IncrementMonoToBootOffsetBy> IncrementMonoToBootOffsetBy (int64_t increment)

Increments the mono-to-boot offset by the given `increment`. With real

clocks, the positive offset from monotonic clock to boot clock increases

during suspend. Here, this method fakes such an increase in offset.

`increment` must be a positive duration.

Returns `ZX_ERR_INVALID_ARGS` if the provided `increment` is not positive.

Caller provides the backing storage for FIDL message via an argument to `.buffer()`.

::fidl::WireUnownedResult< ::fuchsia_testing::FakeClockControl::ResumeWithIncrements> ResumeWithIncrements (int64_t real, ::fuchsia_testing::wire::Increment increment)

Resumes free-running increments on the fake clock.

`real` is the period based on the real monotonic clock over which `increment` is going to be

applied. Returns `ZX_ERR_INVALID_ARGS` if the provided `increment` is invalid (such as a

badly formed RandomRange).

Caller provides the backing storage for FIDL message via an argument to `.buffer()`.

::fidl::WireUnownedResult< ::fuchsia_testing::FakeClockControl::AddStopPoint> AddStopPoint (const ::fuchsia_testing_deadline::wire::DeadlineId & deadline_id, ::fuchsia_testing::wire::DeadlineEventType event_type, ::zx::eventpair && on_stop)

Registers interest in a deadline event.

`deadline_id` and `event_type` identify the named deadline and the event associated with

the deadline. When the event occurs, FakeClock will signal `EVENTPAIR_SIGNALED` on

`on_stop`. If time is free-running, the clock is stopped. Closing the eventpair cancels

interest in the deadline. If the eventpair is closed when a deadline is reached, time is

not stopped. Note that only events that occur after `AddStopPoint` is called are matched.

In addition, the `EXPIRED` event is always reported, even if the component that created the

deadline does not act on the deadline expiration.

The intended use is to set a stop point using `AddStopPoint`, resume running time with

`ResumeWithIncrements`, then wait for the stop point to occur using the `on_stop`

eventpair.

Setting a stop point is only allowed while time is stopped. If time is free running when

this method is invoked `ZX_ERR_ACCESS_DENIED` is returned. If a stop point is already

registered for the same event, `ZX_ALREADY_BOUND` is returned.

Caller provides the backing storage for FIDL message via an argument to `.buffer()`.

::fidl::WireUnownedResult< ::fuchsia_testing::FakeClockControl::Pause> Pause ()

Pauses free-running increments on the fake clock.

Caller provides the backing storage for FIDL message via an argument to `.buffer()`.

::fidl::WireUnownedResult< ::fuchsia_testing::FakeClockControl::IgnoreNamedDeadline> IgnoreNamedDeadline (const ::fuchsia_testing_deadline::wire::DeadlineId & deadline_id)

Instructs the fake clock to make deadlines named `deadline_id` never expire.

This is a no-op if `deadline_id` is already in the ignored set.

Caller provides the backing storage for FIDL message via an argument to `.buffer()`.