Lines Matching refs:mDnsResolver

74         mDnsResolver = IDnsResolver::fromBinder(resolvBinder);  in DnsResolverBinderTest()
76 assert(nullptr != mDnsResolver.get()); in DnsResolverBinderTest()
78 mDnsResolver->createNetworkCache(TEST_NETID); in DnsResolverBinderTest()
84 mDnsResolver->destroyNetworkCache(TEST_NETID); in ~DnsResolverBinderTest()
197 std::shared_ptr<aidl::android::net::IDnsResolver> mDnsResolver; member in DnsResolverBinderTest
216 mDnsResolver->isAlive(&isAlive); in TEST_F()
221 ::ndk::ScopedAStatus status = mDnsResolver->registerEventListener(nullptr); in TEST_F()
234 ::ndk::ScopedAStatus status = mDnsResolver->registerEventListener(fakeListener); in TEST_F()
239 status = mDnsResolver->registerEventListener(fakeListener); in TEST_F()
248 ::ndk::ScopedAStatus status = mDnsResolver->registerUnsolicitedEventListener(nullptr); in TEST_F()
261 ::ndk::ScopedAStatus status = mDnsResolver->registerUnsolicitedEventListener(listener); in TEST_F()
267 status = mDnsResolver->registerUnsolicitedEventListener(listener); in TEST_F()
317 ::ndk::ScopedAStatus status = mDnsResolver->registerEventListener(testOnDnsEvent); in TEST_F()
392 ::ndk::ScopedAStatus status = mDnsResolver->setResolverConfiguration(resolverParams); in TEST_F()
413 ::ndk::ScopedAStatus status = mDnsResolver->setResolverConfiguration(resolverParams); in TEST_F()
420 EXPECT_EQ(mDnsResolver->dump(writeFd.get(), nullptr, 0), 0); in TEST_F()
430 ::ndk::ScopedAStatus status = mDnsResolver->setResolverConfiguration(resolverParams); in TEST_F()
435 EXPECT_EQ(mDnsResolver->dump(writeFd.get(), nullptr, 0), 0); in TEST_F()
444 ::ndk::ScopedAStatus status = mDnsResolver->setResolverConfiguration(paramsWithoutDohParams); in TEST_F()
455 status = mDnsResolver->setResolverConfiguration(paramsWithDohParams); in TEST_F()
470 ::ndk::ScopedAStatus status = mDnsResolver->setResolverConfiguration(resolverParams); in TEST_P()
492 ::ndk::ScopedAStatus status = mDnsResolver->setResolverConfiguration(resolverParams); in TEST_F()
502 status = mDnsResolver->getResolverInfo(TEST_NETID, &res_servers, &res_domains, &res_tls_servers, in TEST_F()
538 EXPECT_TRUE(mDnsResolver->createNetworkCache(ANOTHER_TEST_NETID).isOk()); in TEST_F()
543 mDnsResolver->createNetworkCache(ANOTHER_TEST_NETID).getServiceSpecificError()); in TEST_F()
549 EXPECT_TRUE(mDnsResolver->destroyNetworkCache(ANOTHER_TEST_NETID).isOk()); in TEST_F()
553 EXPECT_TRUE(mDnsResolver->createNetworkCache(ANOTHER_TEST_NETID).isOk()); in TEST_F()
557 EXPECT_TRUE(mDnsResolver->destroyNetworkCache(ANOTHER_TEST_NETID).isOk()); in TEST_F()
561 EXPECT_TRUE(mDnsResolver->destroyNetworkCache(ANOTHER_TEST_NETID).isOk()); in TEST_F()
566 SKIP_IF_REMOTE_VERSION_LESS_THAN(mDnsResolver.get(), 4); in TEST_F()
568 EXPECT_TRUE(mDnsResolver->flushNetworkCache(TEST_NETID).isOk()); in TEST_F()
570 EXPECT_EQ(ENONET, mDnsResolver->flushNetworkCache(-1).getServiceSpecificError()); in TEST_F()
579 EXPECT_EQ(EINVAL, mDnsResolver->setLogSeverity(-1).getServiceSpecificError()); in TEST_F()
585 EXPECT_TRUE(mDnsResolver->setLogSeverity(IDnsResolver::DNS_RESOLVER_LOG_VERBOSE).isOk()); in TEST_F()
588 EXPECT_TRUE(mDnsResolver->setLogSeverity(IDnsResolver::DNS_RESOLVER_LOG_DEBUG).isOk()); in TEST_F()
591 EXPECT_TRUE(mDnsResolver->setLogSeverity(IDnsResolver::DNS_RESOLVER_LOG_INFO).isOk()); in TEST_F()
594 EXPECT_TRUE(mDnsResolver->setLogSeverity(IDnsResolver::DNS_RESOLVER_LOG_WARNING).isOk()); in TEST_F()
597 EXPECT_TRUE(mDnsResolver->setLogSeverity(IDnsResolver::DNS_RESOLVER_LOG_ERROR).isOk()); in TEST_F()
603 EXPECT_TRUE(mDnsResolver->setLogSeverity(IDnsResolver::DNS_RESOLVER_LOG_INFO).isOk()); in TEST_F()
606 EXPECT_TRUE(mDnsResolver->setLogSeverity(IDnsResolver::DNS_RESOLVER_LOG_WARNING).isOk()); in TEST_F()
612 SKIP_IF_REMOTE_VERSION_LESS_THAN(mDnsResolver.get(), 9); in TEST_F()
616 EXPECT_TRUE(mDnsResolver->setResolverOptions(TEST_NETID, options).isOk()); in TEST_F()
619 EXPECT_EQ(ENONET, mDnsResolver->setResolverOptions(-1, options).getServiceSpecificError()); in TEST_F()
651 SKIP_IF_REMOTE_VERSION_LESS_THAN(mDnsResolver.get(), 15); in TEST_F()
658 ::ndk::ScopedAStatus status = mDnsResolver->setResolverConfiguration(resolverParams); in TEST_F()
667 status = mDnsResolver->setResolverConfiguration(resolverParams); in TEST_F()