[[["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 for `pubsub::PublisherConnection` in C++."],["The documentation covers a range of versions, from the latest release candidate, 2.37.0-rc, down to version 2.11.0, allowing you to consult the specific version you are using."],["The `MockPublisherConnection` class contains virtual functions `Publish`, `Flush`, and `ResumePublish`, which mock the corresponding functions of the `Publisher` class, as well as their parameters and return types."],["Each of these virtual functions is implemented using gMock's `MOCK_METHOD()` and can be consulted within the gMock documentation to use this mock in your tests."],["There is an available example that can be consulted to learn how to test your Cloud Pub/Sub publisher application with googlemock, which utilizes the provided `MockPublisherConnection` class."]]],[]]