diff options
author | yang-g <yangg@google.com> | 2016-05-06 13:12:00 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2016-05-06 13:12:00 -0700 |
commit | 080528abb725702c7559c1be058eb8d3ea792fa8 (patch) | |
tree | e741f5ffdf95279034c191f93d95a2cab26b2b32 /test/cpp/end2end | |
parent | 4c07008610922e15c9f406b89e1bf35f80a9728f (diff) |
Add parsing back to protobuf example
Diffstat (limited to 'test/cpp/end2end')
-rw-r--r-- | test/cpp/end2end/end2end_test.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/cpp/end2end/end2end_test.cc b/test/cpp/end2end/end2end_test.cc index bef1561b09..40ba0c0b43 100644 --- a/test/cpp/end2end/end2end_test.cc +++ b/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))); } ////////////////////////////////////////////////////////////////////////// |