[[["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-08-14 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eMockPublisherConnection\u003c/code\u003e is 2.37.0-rc, and the page provides access to the documentation for this version and prior ones.\u003c/p\u003e\n"],["\u003cp\u003eThis page documents a \u003ccode\u003egooglemock\u003c/code\u003e-based mock for \u003ccode\u003epubsub::PublisherConnection\u003c/code\u003e, used for testing Cloud Pub/Sub publisher applications with googlemock.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMockPublisherConnection\u003c/code\u003e class includes mock implementations for \u003ccode\u003ePublish()\u003c/code\u003e, \u003ccode\u003eFlush()\u003c/code\u003e, and \u003ccode\u003eResumePublish()\u003c/code\u003e, all created using gMock's \u003ccode\u003eMOCK_METHOD()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe mocked \u003ccode\u003ePublish\u003c/code\u003e function takes \u003ccode\u003ePublishParams\u003c/code\u003e as a parameter, and it returns a future of \u003ccode\u003eStatusOr< std::string >\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFlush\u003c/code\u003e and \u003ccode\u003eResumePublish\u003c/code\u003e mocked functions take \u003ccode\u003eFlushParams\u003c/code\u003e and \u003ccode\u003eResumePublishParams\u003c/code\u003e as parameters respectively, and both return void.\u003c/p\u003e\n"]]],[],null,[]]