class ClientBaseSpy
Defined at line 28 of file ../../src/lib/fidl/llcpp/tests/dispatcher/mock_client_impl.h
|ClientBaseSpy| delegates calls to |ClientBase| but in addition records
extra information about the transactions which are useful for unit testing.
Public Methods
void ClientBaseSpy ()
In cases the spy needs bound client, but the client also needs a spy,
construct an empty |ClientBaseSpy| first, then call |set_client|.
Defined at line 32 of file ../../src/lib/fidl/llcpp/tests/dispatcher/mock_client_impl.h
void ClientBaseSpy (fidl::internal::ClientBase * client_base)
Defined at line 34 of file ../../src/lib/fidl/llcpp/tests/dispatcher/mock_client_impl.h
template <typename ClientLike>
void ClientBaseSpy (ClientLike && client)
Defined at line 39 of file ../../src/lib/fidl/llcpp/tests/dispatcher/mock_client_impl.h
template <typename ClientLike>
void set_client (ClientLike && client)
Defined at line 43 of file ../../src/lib/fidl/llcpp/tests/dispatcher/mock_client_impl.h
void PrepareAsyncTxn (fidl::internal::ResponseContext * context)
Defined at line 47 of file ../../src/lib/fidl/llcpp/tests/dispatcher/mock_client_impl.h
void ForgetAsyncTxn (fidl::internal::ResponseContext * context)
Defined at line 54 of file ../../src/lib/fidl/llcpp/tests/dispatcher/mock_client_impl.h
void EraseTxid (fidl::internal::ResponseContext * context)
Defined at line 62 of file ../../src/lib/fidl/llcpp/tests/dispatcher/mock_client_impl.h
template <typename Callable>
auto MakeSyncCallWith (Callable && sync_call)
Defined at line 70 of file ../../src/lib/fidl/llcpp/tests/dispatcher/mock_client_impl.h
bool IsPending (zx_txid_t txid)
Defined at line 74 of file ../../src/lib/fidl/llcpp/tests/dispatcher/mock_client_impl.h
size_t GetTxidCount ()
Defined at line 79 of file ../../src/lib/fidl/llcpp/tests/dispatcher/mock_client_impl.h