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

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

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

Public Member Functions

 MOCK_METHOD (future< Status >, Subscribe,(pubsub::SubscriberConnection::SubscribeParams),(override))
virtual future< StatusSubscribe (SubscribeParams p)
 Defines the interface for Subscriber::Subscribe() More...

Detailed Description

A googlemock-based mock for pubsub::SubscriberConnection.

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

Definition at line 33 of file mock_subscriber_connection.h.

Member Function Documentation


google::cloud::pubsub_mocks::MockSubscriberConnection::MOCK_METHOD ( future< Status ,
Subscribe  ,
(pubsub::SubscriberConnection::SubscribeParams ,

◆ Subscribe()

virtual future<Status> google::cloud::pubsub::SubscriberConnection::Subscribe ( SubscribeParams  p)

Defines the interface for Subscriber::Subscribe()