Google Cloud Pub/Sub C++ Client  1.32.1
A C++ Client Library for Google Cloud Pub/Sub
Public Member Functions | List of all members
google::cloud::pubsub_mocks::v1::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))
 

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.

Definition at line 34 of file mock_publisher_connection.h.

Member Function Documentation

◆ MOCK_METHOD() [1/3]

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

◆ MOCK_METHOD() [2/3]

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

◆ MOCK_METHOD() [3/3]

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