[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["This page provides documentation for `MockPublisherConnection`, a googlemock-based mock class designed for testing the `pubsub::PublisherConnection`."],["The latest version documented is 2.37.0-rc, with a comprehensive list of previous versions available, from 2.36.0 down to 2.11.0."],["`MockPublisherConnection` defines interfaces for `Publish()`, `Flush()`, and `ResumePublish()`, all of which are implemented using gMock's `MOCK_METHOD()`."],["Each function in `MockPublisherConnection` has its own set of parameters and return types, which are detailed in respective tables for each function."],["An example on how to use this class can be found in the following link : [Testing your Cloud Pub/Sub publisher application with googlemock](/cpp/docs/reference/pubsub/2.35.0/publisher-mock)."]]],[]]