Google Cloud Pub/Sub C++ Client  1.35.0
A C++ Client Library for Google Cloud Pub/Sub
Public Member Functions | List of all members
google::cloud::pubsub_mocks::MockAckHandler Class Reference

The inlined, versioned namespace for the Cloud Pubsub C++ client APIs. More...

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

Public Member Functions

 MOCK_METHOD (void, ack,(),(override))
 
 MOCK_METHOD (void, nack,(),(override))
 
 MOCK_METHOD (std::string, ack_id,())
 
 MOCK_METHOD (std::int32_t, delivery_attempt,(),(const, override))
 
virtual void ack ()
 The implementation for AckHandler::ack() More...
 
virtual void nack ()
 The implementation for AckHandler::nack() More...
 
virtual std::int32_t delivery_attempt () const
 The implementation for AckHandler::delivery_attempt() More...
 

Detailed Description

The inlined, versioned namespace for the Cloud Pubsub C++ client APIs.

Applications may need to link multiple versions of the Cloud pubsub C++ client, for example, if they link a library that uses an older version of the client than they do. This namespace is inlined, so applications can use pubsub::Foo in their source, but the symbols are versioned, i.e., the symbol becomes pubsub::v1::Foo. A googlemock-based mock for pubsub::AckHandler::Impl

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

Definition at line 44 of file mock_ack_handler.h.

Member Function Documentation

◆ ack()

virtual void google::cloud::pubsub::AckHandler::Impl::ack ( )
inlinevirtualinherited

The implementation for AckHandler::ack()

Definition at line 94 of file ack_handler.h.

◆ delivery_attempt()

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

The implementation for AckHandler::delivery_attempt()

Definition at line 98 of file ack_handler.h.

◆ MOCK_METHOD() [1/4]

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

◆ MOCK_METHOD() [2/4]

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

◆ MOCK_METHOD() [3/4]

google::cloud::pubsub_mocks::MockAckHandler::MOCK_METHOD ( void  ,
ack  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [4/4]

google::cloud::pubsub_mocks::MockAckHandler::MOCK_METHOD ( void  ,
nack  ,
()  ,
(override)   
)

◆ nack()

virtual void google::cloud::pubsub::AckHandler::Impl::nack ( )
inlinevirtualinherited

The implementation for AckHandler::nack()

Definition at line 96 of file ack_handler.h.