Class MockPullAckHandler (2.23.0-rc)

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

google:☁️:pubsub_internal::PullAckHandler::Impl

Functions

virtual ack()

The implementation for PullAckHandler::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 PullAckHandler::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

The implementation for PullAckHandler::delivery_attempt()

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

virtual ack_id() const

Returns the ack id for the handler.

There is no corresponding public interface to access the ack id in PullAckHandler. This is for internal use only.

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

Returns
TypeDescription
std::string

virtual subscription() const

Returns the subscription for the handler.

There is no corresponding public interface to access the subscription id in PullAckHandler. This is for internal use only.

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

Returns
TypeDescription
pubsub::Subscription