template <typename Protocol>

class SimpleWatcherClient

Defined at line 35 of file ../../src/ui/scenic/tests/utils/simple_watcher_client.h

Bundles a fidl::Client

<Protocol

> with a minimal fidl::AsyncEventHandler that

tracks whether the channel is still open. Not usable with open protocols,

which require a handle_unknown_event override.

Public Methods

void SimpleWatcherClient<Protocol> (fidl::ClientEnd<Protocol> client_end, async_dispatcher_t * dispatcher, OnCloseHandler on_close)

Without |on_close|, a closure is only logged.

Defined at line 38 of file ../../src/ui/scenic/tests/utils/simple_watcher_client.h

void on_fidl_error (fidl::UnbindInfo info)

Defined at line 42 of file ../../src/ui/scenic/tests/utils/simple_watcher_client.h

bool is_bound ()

Defined at line 51 of file ../../src/ui/scenic/tests/utils/simple_watcher_client.h

void Unbind ()

Defined at line 52 of file ../../src/ui/scenic/tests/utils/simple_watcher_client.h

fidl::Client<Protocol> & operator-> ()

Defined at line 56 of file ../../src/ui/scenic/tests/utils/simple_watcher_client.h

fidl::Client<Protocol> & client ()

Defined at line 57 of file ../../src/ui/scenic/tests/utils/simple_watcher_client.h