Home
last modified time | relevance | path

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

/hardware/interfaces/bluetooth/async/test/
Dasync_fd_watcher_unittest.cc158 int socket_cli_fd = socket(AF_INET, SOCK_STREAM, 0); in ConnectClient() local
159 EXPECT_FALSE(socket_cli_fd < 0); in ConnectClient()
168 connect(socket_cli_fd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)); in ConnectClient()
171 return socket_cli_fd; in ConnectClient()
174 void WriteFromClient(int socket_cli_fd) { in WriteFromClient() argument
177 int n = write(socket_cli_fd, client_buffer_, strlen(client_buffer_)); in WriteFromClient()
181 void AwaitServerResponse(int socket_cli_fd) { in AwaitServerResponse() argument
183 int n = read(socket_cli_fd, client_buffer_, 1); in AwaitServerResponse()
213 int socket_cli_fd = ConnectClient(); in TEST_F() local
216 close(socket_cli_fd); in TEST_F()
[all …]
/hardware/interfaces/bluetooth/1.0/default/test/
Dasync_fd_watcher_unittest.cc160 int socket_cli_fd = socket(AF_INET, SOCK_STREAM, 0); in ConnectClient() local
161 EXPECT_FALSE(socket_cli_fd < 0); in ConnectClient()
170 connect(socket_cli_fd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)); in ConnectClient()
173 return socket_cli_fd; in ConnectClient()
176 void WriteFromClient(int socket_cli_fd) { in WriteFromClient() argument
179 int n = write(socket_cli_fd, client_buffer_, strlen(client_buffer_)); in WriteFromClient()
183 void AwaitServerResponse(int socket_cli_fd) { in AwaitServerResponse() argument
185 int n = read(socket_cli_fd, client_buffer_, 1); in AwaitServerResponse()
331 int socket_cli_fd = ConnectClient(); in TEST_F() local
333 WriteFromClient(socket_cli_fd); in TEST_F()
[all …]