A googlemock-based mock for pubsub::PublisherConnection.
See Also
Testing your Cloud Pub/Sub publisher application with googlemock for an example using this class.
Functions
virtual Publish(PublishParams)
Defines the interface for Publisher::Publish()
This function is implemented using gMock's MOCK_METHOD().
Consult the gMock documentation to use this mock in your tests.
| Parameter | |
|---|---|
| Name | Description |
p |
PublishParams
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< std::string > > |
|
virtual Flush(FlushParams)
Defines the interface for Publisher::Flush()
This function is implemented using gMock's MOCK_METHOD().
Consult the gMock documentation to use this mock in your tests.
| Parameter | |
|---|---|
| Name | Description |
|
FlushParams
|
| Returns | |
|---|---|
| Type | Description |
void |
|
virtual ResumePublish(ResumePublishParams)
Defines the interface for Publisher::ResumePublish()
This function is implemented using gMock's MOCK_METHOD().
Consult the gMock documentation to use this mock in your tests.
| Parameter | |
|---|---|
| Name | Description |
p |
ResumePublishParams
|
| Returns | |
|---|---|
| Type | Description |
void |
|