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

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

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

Public Member Functions

 MOCK_METHOD (StatusOr< std::string >, Publish,(pubsub::BlockingPublisherConnection::PublishParams),(override))
 
 MOCK_METHOD (Options, options,(),(override))
 
virtual StatusOr< std::string > Publish (PublishParams p)
 Defines the interface for BlockingPublisher::Publish() More...
 
virtual Options options ()
 Returns the options configured at initialization time. More...
 

Detailed Description

A googlemock-based mock for pubsub::BlockingPublisherConnection.

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

Member Function Documentation

◆ MOCK_METHOD() [1/2]

google::cloud::pubsub_mocks::MockBlockingPublisherConnection::MOCK_METHOD ( Options  ,
options  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [2/2]

google::cloud::pubsub_mocks::MockBlockingPublisherConnection::MOCK_METHOD ( StatusOr< std::string >  ,
Publish  ,
(pubsub::BlockingPublisherConnection::PublishParams ,
(override)   
)

◆ options()

virtual Options google::cloud::pubsub::BlockingPublisherConnection::options ( )
inlinevirtualinherited

Returns the options configured at initialization time.

◆ Publish()

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

Defines the interface for BlockingPublisher::Publish()