change stringstream to ostringstream.

pull/341/head
Chen Wang 10 years ago
parent cde34e0b5d
commit 0b439e42f4
  1. 2
      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);

Loading…
Cancel
Save