Lines Matching refs:read_buffer
350 std::string read_buffer;
351 rv = ReadEntireFile(instance_->pp_instance(), &file_io, 0, &read_buffer,
354 ASSERT_EQ(std::string("test_test"), read_buffer);
362 read_buffer.clear();
363 rv = ReadEntireFile(instance_->pp_instance(), &file_io, 0, &read_buffer,
366 ASSERT_EQ(std::string("test"), read_buffer);
369 read_buffer.clear();
370 rv = ReadEntireFile(instance_->pp_instance(), &file_io, 100, &read_buffer,
373 ASSERT_TRUE(read_buffer.empty());
381 read_buffer.clear();
382 rv = ReadEntireFile(instance_->pp_instance(), &file_io, 0, &read_buffer,
385 ASSERT_EQ(std::string("test\0\0\0\0test", 12), read_buffer);
393 read_buffer.clear();
394 rv = ReadEntireFile(instance_->pp_instance(), &file_io, 0, &read_buffer,
397 ASSERT_EQ(std::string("test\0\0\0\0test\0\0\0\0", 16), read_buffer);
405 read_buffer.clear();
406 rv = ReadEntireFile(instance_->pp_instance(), &file_io, 0, &read_buffer,
409 ASSERT_EQ(std::string("testtesttest\0\0\0\0", 16), read_buffer);
412 read_buffer.clear();
413 rv = ReadEntireFile(instance_->pp_instance(), &file_io, 4, &read_buffer,
416 ASSERT_EQ(std::string("testtest\0\0\0\0", 12), read_buffer);
428 read_buffer.clear();
429 rv = ReadEntireFile(instance_->pp_instance(), &file_io2, 0, &read_buffer,
432 ASSERT_EQ(std::string("testtesttest\0\0\0\0appended", 24), read_buffer);
476 std::string read_buffer;
477 read_buffer
479 &read_buffer, callback_type());
481 ASSERT_EQ(std::string("test_test"), read_buffer);
489 read_buffer.clear();
491 &read_buffer, callback_type());
493 ASSERT_EQ(std::string("test"), read_buffer);
496 read_buffer.clear();
498 &read_buffer, callback_type());
500 ASSERT_TRUE(read_buffer.empty());
508 read_buffer.clear();
510 &read_buffer, callback_type());
512 ASSERT_EQ(std::string("test\0\0\0\0test", 12), read_buffer);
520 read_buffer.clear();
522 &read_buffer, callback_type());
524 ASSERT_EQ(std::string("test\0\0\0\0test\0\0\0\0", 16), read_buffer);
532 read_buffer.clear();
534 &read_buffer, callback_type());
536 ASSERT_EQ(std::string("testtesttest\0\0\0\0", 16), read_buffer);
539 read_buffer.clear();
541 &read_buffer, callback_type());
543 ASSERT_EQ(std::string("testtest\0\0\0\0", 12), read_buffer);
919 std::string read_buffer;
921 &read_buffer, callback_type());
923 ASSERT_EQ(std::string("abcdefghijkl"), read_buffer);
1174 std::string read_buffer;
1175 ASSERT_TRUE(ReadEntireFileFromFileHandle(fd, &read_buffer));
1176 if (msg != read_buffer)
1177 return ReportMismatch("file content != msg", read_buffer, msg);
1191 std::string read_buffer;
1192 ASSERT_TRUE(ReadEntireFileFromFileHandle(fd, &read_buffer));
1193 if (read_buffer != "bazbar")
1194 return ReportMismatch("file content != msg", read_buffer, "bazbar");
1250 std::string read_buffer;
1251 ASSERT_TRUE(ReadEntireFileFromFileHandle(fd, &read_buffer));
1252 if (msg2 != read_buffer)
1253 return ReportMismatch("file content != msg2", read_buffer, msg2);