Lines Matching refs:bytes_read
136 uint32 bytes_read = 0;
138 while (bytes_read < bytes_to_read) {
146 bytes_read += rv;
149 return static_cast<int>(bytes_read);
204 uint32 bytes_read;
221 bytes_read = DrainClientSocket(buf, 1, 1, &callback);
222 ASSERT_EQ(bytes_read, 1u);
229 bytes_read = DrainClientSocket(buf, 4096, arraysize(kServerReply) - 2,
231 ASSERT_EQ(bytes_read, arraysize(kServerReply) - 2);
242 bytes_read = DrainClientSocket(buf, 1, 1, &callback);
243 ASSERT_EQ(bytes_read, 1u);
249 bytes_read = DrainClientSocket(buf, 4096, arraysize(kServerReply) - 2,
251 ASSERT_EQ(bytes_read, arraysize(kServerReply) - 2);
271 uint32 bytes_read = DrainClientSocket(buf, 4096, arraysize(kServerReply) - 1,
273 ASSERT_EQ(bytes_read, arraysize(kServerReply) - 1);
296 uint32 bytes_read = 0;
297 while (bytes_read < arraysize(kServerReply) - 1) {
305 bytes_read += rv;