diff --git a/examples/tips/publisher_test.cc b/examples/tips/publisher_test.cc index cb949e96fac..e46576a2f6c 100644 --- a/examples/tips/publisher_test.cc +++ b/examples/tips/publisher_test.cc @@ -81,7 +81,7 @@ class PublisherServiceImpl : public tech::pubsub::PublisherService::Service { Status ListTopics(ServerContext* context, const ::tech::pubsub::ListTopicsRequest* request, ::tech::pubsub::ListTopicsResponse* response) override { - std::stringstream ss; + std::ostringstream ss; ss << "cloud.googleapis.com/project in (/projects/" << kProjectId << ")"; EXPECT_EQ(request->query(), ss.str()); response->add_topic()->set_name(kTopic);