Home
last modified time | relevance | path

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

/external/webrtc/webrtc/base/
Dvirtualsocket_unittest.cc507 size_t send_pos = 0, recv_pos = 0; in TcpSendTest() local
533 result = b->Recv(recv_buffer + recv_pos, 500); in TcpSendTest()
535 recv_pos += result; in TcpSendTest()
548 result = b->Recv(recv_buffer + recv_pos, kDataSize - recv_pos); in TcpSendTest()
554 recv_pos += result; in TcpSendTest()
562 result = b->Recv(recv_buffer + recv_pos, kDataSize - recv_pos); in TcpSendTest()
568 recv_pos += result; in TcpSendTest()
581 result = b->Recv(recv_buffer + recv_pos, kDataSize - recv_pos); in TcpSendTest()
587 recv_pos += result; in TcpSendTest()
595 EXPECT_EQ(kDataSize, recv_pos); in TcpSendTest()
Dsocket_unittest.cc682 size_t send_pos = 0, recv_pos = 0; in TcpInternal() local
721 while (recv_pos < kDataSize) { in TcpInternal()
752 int rcvd = client->Recv(recv_buffer.get() + recv_pos, in TcpInternal()
753 kDataSize - recv_pos); in TcpInternal()
765 recv_pos += rcvd; in TcpInternal()
784 EXPECT_EQ(kDataSize, recv_pos); in TcpInternal()