Google Cloud Pub/Sub C++ Client 2.13.0
A C++ Client Library for Google Cloud Pub/Sub
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::pubsub_mocks::MockExactlyOnceAckHandler Class Reference

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

#include <google/cloud/pubsub/mocks/mock_exactly_once_ack_handler.h>

Public Member Functions

 MOCK_METHOD (future< Status >, ack,(),(override))
 
 MOCK_METHOD (future< Status >, nack,(),(override))
 
 MOCK_METHOD (std::string, ack_id,())
 
 MOCK_METHOD (std::int32_t, delivery_attempt,(),(const, override))
 
virtual future< Statusack ()
 The implementation for ExactlyOnceAckHandler::ack() More...
 
virtual future< Statusnack ()
 The implementation for ExactlyOnceAckHandler::nack() More...
 
virtual std::int32_t delivery_attempt () const
 The implementation for ExactlyOnceAckHandler::delivery_attempt() More...
 

Detailed Description

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

google::cloud::pubsub_internal::ExactlyOnceAckHandler::Impl

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

Member Function Documentation

◆ ack()

virtual future< Status > google::cloud::pubsub::ExactlyOnceAckHandler::Impl::ack ( )
inlinevirtualinherited

The implementation for ExactlyOnceAckHandler::ack()

◆ delivery_attempt()

virtual std::int32_t google::cloud::pubsub::ExactlyOnceAckHandler::Impl::delivery_attempt ( ) const
inlinevirtualinherited

The implementation for ExactlyOnceAckHandler::delivery_attempt()

◆ MOCK_METHOD() [1/4]

google::cloud::pubsub_mocks::MockExactlyOnceAckHandler::MOCK_METHOD ( future< Status ,
ack  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [2/4]

google::cloud::pubsub_mocks::MockExactlyOnceAckHandler::MOCK_METHOD ( future< Status ,
nack  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [3/4]

google::cloud::pubsub_mocks::MockExactlyOnceAckHandler::MOCK_METHOD ( std::int32_t  ,
delivery_attempt  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [4/4]

google::cloud::pubsub_mocks::MockExactlyOnceAckHandler::MOCK_METHOD ( std::string  ,
ack_id  ,
()   
)

◆ nack()

virtual future< Status > google::cloud::pubsub::ExactlyOnceAckHandler::Impl::nack ( )
inlinevirtualinherited

The implementation for ExactlyOnceAckHandler::nack()