[[["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-03-14 UTC."],[[["This page provides documentation for `MockPublisherConnection`, a googlemock-based mock class designed for testing Google Cloud Pub/Sub publisher applications, covering versions from 2.11.0 to the latest release candidate, 2.37.0-rc."],["`MockPublisherConnection` mocks the `pubsub::PublisherConnection` and includes virtual functions like `Publish()`, `Flush()`, and `ResumePublish()`, all of which are implemented using gMock's `MOCK_METHOD()`."],["The `Publish()` function, when called with `PublishParams`, returns a future of `StatusOr\u003cstd::string\u003e`, while `Flush()` and `ResumePublish()` functions, with `FlushParams` and `ResumePublishParams` respectively, return void."],["Each version listed links to the corresponding documentation for `MockPublisherConnection`, allowing users to view the specific details for that version."]]],[]]