[[["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 webpage provides documentation for `MockPublisherConnection`, a googlemock-based mock class designed for testing the `pubsub::PublisherConnection`."],["The documentation covers various versions of the mock class, ranging from the latest release candidate (2.37.0-rc) down to version 2.11.0, allowing users to find the appropriate version for their needs."],["The mock class features virtual functions like `Publish`, `Flush`, and `ResumePublish`, mirroring the interface of the real `Publisher` class and facilitating comprehensive testing with `gMock`'s `MOCK_METHOD()`."],["The `Publish` function takes `PublishParams` as a parameter and returns a `future\u003c StatusOr\u003c std::string \u003e \u003e`, while `Flush` takes `FlushParams` and returns nothing, and `ResumePublish` takes `ResumePublishParams` and returns nothing."],["There is an external link to a documentation page showing how to test a Cloud Pub/Sub publisher application with googlemock."]]],[]]