class ClientTest

Defined at line 72 of file ../../src/tests/fidl/dynsuite/client_suite/harness/harness.h

Protected Members

static duration kTimeoutDuration

Protected Methods

void SetUp ()

Defined at line 13 of file ../../src/tests/fidl/dynsuite/client_suite/harness/harness.cc

void TearDown ()

Defined at line 32 of file ../../src/tests/fidl/dynsuite/client_suite/harness/harness.cc

std::shared_ptr<ClosedTargetEventReporter> ReceiveClosedEvents ()

Tell the runner to start receiving events on the closed target. Returns the

ClosedTargetEventReporter which can be used to check what events are seen

by the client.

Defined at line 51 of file ../../src/tests/fidl/dynsuite/client_suite/harness/harness.cc

void ClientTest (fidl_clientsuite::Test test)

Defined at line 76 of file ../../src/tests/fidl/dynsuite/client_suite/harness/harness.h

std::shared_ptr<AjarTargetEventReporter> ReceiveAjarEvents ()

Tell the runner to start receiving events on the ajar target. Returns the

AjarTargetEventReporter which can be used to check what events are seen by

the client.

Defined at line 79 of file ../../src/tests/fidl/dynsuite/client_suite/harness/harness.cc

fidl::Client<fidl_clientsuite::Runner> & runner ()

Defined at line 81 of file ../../src/tests/fidl/dynsuite/client_suite/harness/harness.h

channel_util::Channel & server_end ()

Defined at line 82 of file ../../src/tests/fidl/dynsuite/client_suite/harness/harness.h

fidl::ClientEnd<fidl_clientsuite::ClosedTarget> TakeClosedClient ()

Take the client end of the channel corresponding to |server_end| as a

|ClosedTarget| |ClientEnd|.

Defined at line 86 of file ../../src/tests/fidl/dynsuite/client_suite/harness/harness.h

fidl::ClientEnd<fidl_clientsuite::AjarTarget> TakeAjarClient ()

Take the client end of the channel corresponding to |server_end| as an

|AjarTarget| |ClientEnd|.

Defined at line 92 of file ../../src/tests/fidl/dynsuite/client_suite/harness/harness.h

fidl::ClientEnd<fidl_clientsuite::OpenTarget> TakeOpenClient ()

Take the client end of the channel corresponding to |server_end| as an

|OpenTarget| |ClientEnd|.

Defined at line 98 of file ../../src/tests/fidl/dynsuite/client_suite/harness/harness.h

std::shared_ptr<OpenTargetEventReporter> ReceiveOpenEvents ()

Tell the runner to start receiving events on the open target. Returns the

OpenTargetEventReporter which can be used to check what events are seen by

the client.

Defined at line 107 of file ../../src/tests/fidl/dynsuite/client_suite/harness/harness.cc

bool _wait_until (fit::function<bool ()> condition)

Use WAIT_UNTIL instead of calling |_wait_until| directly.

Defined at line 118 of file ../../src/tests/fidl/dynsuite/client_suite/harness/harness.h

template <typename FidlMethod>
fidl::Result<FidlMethod> WaitFor (fidl::internal::NaturalThenable<FidlMethod> && thenable)

Wait for a NaturalThenable to complete. Call this on an async method to

finish waiting for it synchronously.

Defined at line 125 of file ../../src/tests/fidl/dynsuite/client_suite/harness/harness.h

void MarkCallbackRun ()

Mark that the callback was run.

Defined at line 134 of file ../../src/tests/fidl/dynsuite/client_suite/harness/harness.h

bool WasCallbackRun ()

Check whether the callback was run.

Defined at line 136 of file ../../src/tests/fidl/dynsuite/client_suite/harness/harness.h