Home
last modified time | relevance | path

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

/packages/modules/adb/daemon/
Drestart_service_test.cpp39 const int assigned_port(test_utils::GetUnassignedPort(dontcare)); in TEST() local
42 "tcp", std::bind(restart_tcp_service, std::placeholders::_1, assigned_port)); in TEST()
46 {android::base::StringPrintf("restarting in TCP mode port: %d", assigned_port)}); in TEST()
49 std::to_string(assigned_port)); in TEST()
/packages/modules/adb/
Dsocket_test.cpp275 static void ClientThreadFunc(const int assigned_port) { in ClientThreadFunc() argument
277 const int fd = network_loopback_client(assigned_port, SOCK_STREAM, &error); in ClientThreadFunc()
288 const int assigned_port(test_utils::GetUnassignedPort(listen_fd)); in TEST_F() local
290 std::thread client_thread(ClientThreadFunc, assigned_port); in TEST_F()