src/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_unittest.cc
TEST_F(IoTest, StringIo) {
  std::string str;
  {
    StringOutputStream output(&str);
    WriteStuff(&output);
  }
  {
    ArrayInputStream input(str.data(), str.size());
    ReadStuff(&input);
  }
}
// There is no string input, only string output.  Also, it doesn't support
// explicit block sizes.  So, we'll only run one test and we'll use
// ArrayInput to read back the results.
There is no string input, only string output.  Also, it doesn't support
explicit block sizes.  So, we'll only run one test and we'll use
ArrayInput to read back the results.
There is no string input only string output . Also it doesn ' t support explicit block sizes . So we ' ll only run one test and we ' ll use ArrayInput to read back the results .
TEST_F(IoTest, StringIo) {
  std::string str;
  {
    StringOutputStream output(&str);
    WriteStuff(&output);
  }
  {
    ArrayInputStream input(str.data(), str.size());
    ReadStuff(&input);
  }
}
TEST_F ( IoTest , StringIo ) { std :: string str ; { StringOutputStream output ( & str ) ; WriteStuff ( & output ) ; } { ArrayInputStream input ( str . data ( ) , str . size ( ) ) ; ReadStuff ( & input ) ; } }
There is no string input, only string output.
There is no string input only string output .