Class MockExactlyOnceAckHandler (2.19.0)

A googlemock-based mock for [pubsub::ExactlyOnceAckHandler::Impl][mocked-link].

google:☁️:pubsub_internal::ExactlyOnceAckHandler::Impl

See Also

Testing your Cloud Pub/Sub subscriber application with googlemock for an example using this class.

Functions

virtual ack()

The implementation for ExactlyOnceAckHandler::ack()

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Returns
TypeDescription
future< Status >

virtual nack()

The implementation for ExactlyOnceAckHandler::nack()

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Returns
TypeDescription
future< Status >

virtual delivery_attempt() const

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Returns
TypeDescription
std::int32_t