Lines Matching refs:read_buffer
73 std::string read_buffer(1000, '\0');
74 uint32_t read_buffer_size = static_cast<uint32_t>(read_buffer.size());
76 UserPointer<void>(&read_buffer[0]),
82 read_buffer.resize(read_buffer_size);
83 VLOG(2) << "Child got: " << read_buffer;
85 if (read_buffer == quitquitquit) {
90 std::string write_buffer = read_buffer + read_buffer;
128 std::string read_buffer(1000, '\0');
129 uint32_t read_buffer_size = static_cast<uint32_t>(read_buffer.size());
131 UserPointer<void>(&read_buffer[0]),
137 read_buffer.resize(read_buffer_size);
138 VLOG(2) << "Parent got: " << read_buffer;
139 EXPECT_EQ(hello + hello, read_buffer);
185 std::string read_buffer(kNumMessages * 2, '\0');
186 uint32_t read_buffer_size = static_cast<uint32_t>(read_buffer.size());
188 UserPointer<void>(&read_buffer[0]),
194 read_buffer.resize(read_buffer_size);
196 EXPECT_EQ(std::string(i * 2, 'A' + (i % 26)), read_buffer);
235 std::string read_buffer(100, '\0');
236 uint32_t num_bytes = static_cast<uint32_t>(read_buffer.size());
240 UserPointer<void>(&read_buffer[0]),
246 read_buffer.resize(num_bytes);
247 CHECK_EQ(read_buffer, std::string("go 1"));
288 read_buffer = std::string(100, '\0');
289 num_bytes = static_cast<uint32_t>(read_buffer.size());
291 UserPointer<void>(&read_buffer[0]),
297 read_buffer.resize(num_bytes);
298 CHECK_EQ(read_buffer, std::string("go 3"));
367 std::string read_buffer(100, '\0');
368 uint32_t num_bytes = static_cast<uint32_t>(read_buffer.size());
371 UserPointer<void>(&read_buffer[0]),
376 read_buffer.resize(num_bytes);
377 EXPECT_EQ(std::string("go 2"), read_buffer);
427 std::string read_buffer(100, '\0');
428 read_buffer.size());
432 UserPointer<void>(&read_buffer[0]),
440 read_buffer.resize(num_bytes);
441 CHECK_EQ(read_buffer, std::string("hello"));