Home
last modified time | relevance | path

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

/system/netd/tests/
Dbinder_test.cpp2151 std::vector<IPAddress> listenAddrs; in findDnsSockets() local
2158 listenAddrs.push_back(addr); in findDnsSockets()
2170 listenAddrs.clear(); in findDnsSockets()
2174 if (listenAddrs.size() >= numExpected) { in findDnsSockets()
2180 return listenAddrs; in findDnsSockets()
2250 std::vector<IPAddress> listenAddrs = findDnsSockets(&sd, 0); in TEST_F() local
2251 EXPECT_EQ(0U, listenAddrs.size()) << "Unexpectedly found IPv4 socket(s) listening on port 53"; in TEST_F()
2259 listenAddrs = findDnsSockets(&sd, 2); in TEST_F()
2260 EXPECT_EQ(2U, listenAddrs.size()) << "Expected exactly 2 IPv4 sockets listening on port 53"; in TEST_F()
2261 EXPECT_EQ(1, std::count(listenAddrs.begin(), listenAddrs.end(), addr2)); in TEST_F()
[all …]