Add parsing back to protobuf example

pull/6470/head
yang-g 9 years ago
parent 4c07008610
commit 080528abb7
  1. 3
      test/cpp/end2end/end2end_test.cc

@ -998,6 +998,9 @@ TEST_P(End2endTest, BinaryTrailerTest) {
EXPECT_EQ(1, trailers.count(kDebugInfoTrailerKey));
auto iter = trailers.find(kDebugInfoTrailerKey);
EXPECT_EQ(expected_string, iter->second);
// Parse the returned trailer into a DebugInfo proto.
DebugInfo returned_info;
EXPECT_TRUE(returned_info.ParseFromString(ToString(iter->second)));
}
//////////////////////////////////////////////////////////////////////////

Loading…
Cancel
Save