Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp4363 void expectDnsNetIdIsDefaultNetwork(INetd* netdService) { in expectDnsNetIdIsDefaultNetwork() argument
4365 EXPECT_TRUE(netdService->networkGetDefault(&currentNetid).isOk()); in expectDnsNetIdIsDefaultNetwork()
4369 void expectDnsNetIdWithVpn(INetd* netdService, unsigned vpnNetId, unsigned expectedNetId) { in expectDnsNetIdWithVpn() argument
4370 if (DnsResponderClient::isRemoteVersionSupported(netdService, 6)) { in expectDnsNetIdWithVpn()
4373 EXPECT_TRUE(netdService->networkCreate(config).isOk()); in expectDnsNetIdWithVpn()
4377 EXPECT_TRUE(netdService->networkCreateVpn(vpnNetId, false /* secure */).isOk()); in expectDnsNetIdWithVpn()
4383 EXPECT_TRUE(netdService->networkAddUidRanges(vpnNetId, {makeUidRangeParcel(uid, uid)}).isOk()); in expectDnsNetIdWithVpn()
4385 EXPECT_TRUE(netdService->networkDestroy(vpnNetId).isOk()); in expectDnsNetIdWithVpn()
4394 expectDnsNetIdIsDefaultNetwork(mDnsClient.netdService()); in TEST_F()
4395 expectDnsNetIdWithVpn(mDnsClient.netdService(), TEST_VPN_NETID, TEST_VPN_NETID); in TEST_F()
[all …]
Dresolv_private_dns_test.cpp589 ScopeBlockedUIDRule scopeBlockUidRule(mDnsClient.netdService(), TEST_UID); in TEST_P()
653 ScopeBlockedUIDRule scopeBlockUidRule(mDnsClient.netdService(), TEST_UID); in TEST_P()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder_client_ndk.h167 aidl::android::net::INetd* netdService() const { return mNetdSrv.get(); } in netdService() function