Lines Matching refs:acceptedSocket
209 unique_fd* acceptedSocket);
705 unique_fd* acceptedSocket) { in fakeRemoteSocketPair() argument
720 acceptedSocket->reset( in fakeRemoteSocketPair()
722 ASSERT_NE(-1, *acceptedSocket); in fakeRemoteSocketPair()
727 void checkSocketpairOpen(int clientSocket, int acceptedSocket) { in checkSocketpairOpen() argument
730 EXPECT_EQ(4, read(acceptedSocket, buf, sizeof(buf))); in checkSocketpairOpen()
734 void checkSocketpairClosed(int clientSocket, int acceptedSocket) { in checkSocketpairClosed() argument
742 ret = write(acceptedSocket, "foo", sizeof("foo")); in checkSocketpairClosed()
749 unique_fd clientSocket, serverSocket, acceptedSocket; in TEST_F() local
750 ASSERT_NO_FATAL_FAILURE(fakeRemoteSocketPair(&clientSocket, &serverSocket, &acceptedSocket)); in TEST_F()
770 checkSocketpairOpen(clientSocket, acceptedSocket); in TEST_F()
783 checkSocketpairOpen(clientSocket, acceptedSocket); in TEST_F()
788 checkSocketpairClosed(clientSocket, acceptedSocket); in TEST_F()