Home
last modified time | relevance | path

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

/system/netd/tests/
Dbinder_test.cpp2280 std::vector<IPAddress> listenAddrs; in findDnsSockets() local
2287 listenAddrs.push_back(addr); in findDnsSockets()
2299 listenAddrs.clear(); in findDnsSockets()
2303 if (listenAddrs.size() >= numExpected) { in findDnsSockets()
2309 return listenAddrs; in findDnsSockets()
2379 std::vector<IPAddress> listenAddrs = findDnsSockets(&sd, 0); in TEST_F() local
2380 EXPECT_EQ(0U, listenAddrs.size()) << "Unexpectedly found IPv4 socket(s) listening on port 53"; in TEST_F()
2388 listenAddrs = findDnsSockets(&sd, 2); in TEST_F()
2389 EXPECT_EQ(2U, listenAddrs.size()) << "Expected exactly 2 IPv4 sockets listening on port 53"; in TEST_F()
2390 EXPECT_EQ(1, std::count(listenAddrs.begin(), listenAddrs.end(), addr2)); in TEST_F()
[all …]