Class MockSubscriberConnection (2.23.0-rc)

A googlemock-based mock for pubsub::SubscriberConnection.

Functions

virtual Subscribe(SubscribeParams)

Defines the interface for Subscriber::Subscribe(ApplicationCallback)

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

Parameter
NameDescription
p SubscribeParams
Returns
TypeDescription
future< Status >

virtual ExactlyOnceSubscribe(ExactlyOnceSubscribeParams)

Defines the interface for Subscriber::Subscribe(ExactlyOnceApplicationCallback).

We use a different name for this function (as opposed to an overload) to simplify the use of mocks.

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

Parameter
NameDescription
p ExactlyOnceSubscribeParams
Returns
TypeDescription
future< Status >

virtual Pull()

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

Returns
TypeDescription
StatusOr< PullResponse >

virtual options()

Returns the configuration parameters for this object.

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

Returns
TypeDescription
Options