Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 2 of 2) sorted by relevance

/ndk/sources/third_party/googletest/googletest/src/
Dgtest-port.cc610 size_t bytes_read = 0; // # of bytes read so far in ReadEntireFile() local
617 bytes_last_read = fread(buffer+bytes_read, 1, file_size-bytes_read, file); in ReadEntireFile()
618 bytes_read += bytes_last_read; in ReadEntireFile()
619 } while (bytes_last_read > 0 && bytes_read < file_size); in ReadEntireFile()
621 const std::string content(buffer, bytes_read); in ReadEntireFile()
Dgtest-death-test.cc427 int bytes_read; in ReadAndInterpretStatusByte() local
434 bytes_read = posix::Read(read_fd(), &flag, 1); in ReadAndInterpretStatusByte()
435 } while (bytes_read == -1 && errno == EINTR); in ReadAndInterpretStatusByte()
437 if (bytes_read == 0) { in ReadAndInterpretStatusByte()
439 } else if (bytes_read == 1) { in ReadAndInterpretStatusByte()