Lines Matching refs:FakeSocketLimited
458 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()
538 for (int i = 0; i < FakeSocketLimited::sLimit; ++i) { in TEST_F()
549 FakeSocketLimited::sLimit = 10; // Close the socket after 10 queries. in TEST_F()
550 FakeSocketLimited::sMaxSize = SIZE - 2; // Silently drop "long" queries in TEST_F()
551 FakeSocketFactory<FakeSocketLimited> factory; in TEST_F()
556 const int num_queries = 10 * FakeSocketLimited::sLimit; in TEST_F()