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

A googlemock-based mock for pubsub::PublisherConnection. More...

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

Public Member Functions

 MOCK_METHOD (future< StatusOr< std::string > >, Publish,(pubsub::PublisherConnection::PublishParams),(override))
 
 MOCK_METHOD (void, Flush,(pubsub::PublisherConnection::FlushParams),(override))
 
 MOCK_METHOD (void, ResumePublish,(pubsub::PublisherConnection::ResumePublishParams),(override))
 
virtual future< StatusOr< std::string > > Publish (PublishParams p)
 Defines the interface for Publisher::Publish() More...
 
virtual void Flush (FlushParams)
 Defines the interface for Publisher::Flush() More...
 
virtual void ResumePublish (ResumePublishParams p)
 Defines the interface for Publisher::ResumePublish() More...
 

Detailed Description

A googlemock-based mock for pubsub::PublisherConnection.

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

Member Function Documentation

◆ Flush()

virtual void google::cloud::pubsub::PublisherConnection::Flush ( FlushParams  )
virtualinherited

Defines the interface for Publisher::Flush()

◆ MOCK_METHOD() [1/3]

google::cloud::pubsub_mocks::MockPublisherConnection::MOCK_METHOD ( future< StatusOr< std::string > >  ,
Publish  ,
(pubsub::PublisherConnection::PublishParams ,
(override)   
)

◆ MOCK_METHOD() [2/3]

google::cloud::pubsub_mocks::MockPublisherConnection::MOCK_METHOD ( void  ,
Flush  ,
(pubsub::PublisherConnection::FlushParams ,
(override)   
)

◆ MOCK_METHOD() [3/3]

google::cloud::pubsub_mocks::MockPublisherConnection::MOCK_METHOD ( void  ,
ResumePublish  ,
(pubsub::PublisherConnection::ResumePublishParams ,
(override)   
)

◆ Publish()

virtual future< StatusOr< std::string > > google::cloud::pubsub::PublisherConnection::Publish ( PublishParams  p)
virtualinherited

Defines the interface for Publisher::Publish()

◆ ResumePublish()

virtual void google::cloud::pubsub::PublisherConnection::ResumePublish ( ResumePublishParams  p)
virtualinherited

Defines the interface for Publisher::ResumePublish()