Class MockPullAckHandler (2.31.0)

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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
pubsub::Subscription