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::MockAckHandler Class Reference

The inlined, versioned namespace for the Cloud Pub/Sub 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 Pub/Sub C++ client APIs.

Applications may need to link multiple versions of the Cloud Pub/Sub 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.

Member Function Documentation

◆ ack()

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

The implementation for AckHandler::ack()

◆ delivery_attempt()

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

The implementation for AckHandler::delivery_attempt()

◆ 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()