Lines Matching refs:bytes_read
17 int bytes_read;
19 bytes_read = base::ReadPlatformFile(
23 // If we reached EOF, bytes_read will be 0.
24 if (bytes_read == 0)
27 if ((bytes_read < 0) || (bytes_read > size - total_bytes_read))
30 total_bytes_read += bytes_read;
155 int bytes_read = ReadFully(file, kTestDataSize, data_read_1, kTestDataSize);
156 EXPECT_EQ(0, bytes_read);
160 bytes_read = ReadFully(file, kPartialReadOffset, data_read_1, kTestDataSize);
161 EXPECT_EQ(kTestDataSize - kPartialReadOffset, bytes_read);
162 for (int i = 0; i < bytes_read; i++)
166 bytes_read = ReadFully(file, 0, data_read_1, 0);
167 EXPECT_EQ(0, bytes_read);
170 bytes_read = ReadFully(file, 0, data_read_1, kTestDataSize);
171 EXPECT_EQ(kTestDataSize, bytes_read);
172 for (int i = 0; i < bytes_read; i++)
189 bytes_read = ReadFully(file, 0, data_read_2, static_cast<int>(file_size));
190 EXPECT_EQ(file_size, bytes_read);
229 int bytes_read = ReadFully(file, 0, data_read, static_cast<int>(file_size));
230 EXPECT_EQ(file_size, bytes_read);
243 bytes_read = ReadFully(file, 0, data_read, kTestDataSize);
244 EXPECT_EQ(file_size, bytes_read);