Home
last modified time | relevance | path

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

/system/core/libsysutils/src/
DSocketListener_test.cpp46 unique_fd serverSocket(const std::string& path) { in serverSocket() function
127 mSserverFd = serverSocket(mSocketPath); in FrameworkListenerTest()
/system/netd/tests/
Dbinder_test.cpp208 static void fakeRemoteSocketPair(unique_fd* clientSocket, unique_fd* serverSocket,
704 void NetdBinderTest::fakeRemoteSocketPair(unique_fd* clientSocket, unique_fd* serverSocket, in fakeRemoteSocketPair() argument
706 serverSocket->reset(socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0)); in fakeRemoteSocketPair()
708 ASSERT_EQ(0, bind(*serverSocket, (struct sockaddr *) &server6, sizeof(server6))); in fakeRemoteSocketPair()
711 ASSERT_EQ(0, getsockname(*serverSocket, (struct sockaddr *) &server6, &addrlen)); in fakeRemoteSocketPair()
712 ASSERT_EQ(0, listen(*serverSocket, 10)); in fakeRemoteSocketPair()
721 accept4(*serverSocket, (struct sockaddr*)&server6, &addrlen, SOCK_CLOEXEC)); in fakeRemoteSocketPair()
749 unique_fd clientSocket, serverSocket, acceptedSocket; in TEST_F() local
750 ASSERT_NO_FATAL_FAILURE(fakeRemoteSocketPair(&clientSocket, &serverSocket, &acceptedSocket)); in TEST_F()