Home
last modified time | relevance | path

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

/system/netd/resolv/
Ddns_tls_test.cpp458 class FakeSocketLimited : public IDnsTlsSocket { class
462 explicit FakeSocketLimited(IDnsTlsSocketObserver* observer) in FakeSocketLimited() function in android::net::FakeSocketLimited
464 ~FakeSocketLimited() { in ~FakeSocketLimited()
497 mCloser = std::make_unique<std::thread>(&FakeSocketLimited::sendClose, this); in query()
524 int FakeSocketLimited::sLimit;
525 size_t FakeSocketLimited::sMaxSize;
528 FakeSocketLimited::sLimit = 10; // Close the socket after 10 queries. in TEST_F()
529 FakeSocketLimited::sMaxSize = 0; // Silently drop all queries in TEST_F()
530 FakeSocketFactory<FakeSocketLimited> factory; in TEST_F()
537 results.reserve(FakeSocketLimited::sLimit); in TEST_F()
[all …]