Lines Matching refs:netdService

4363 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()
4426 expectDnsNetIdWithVpn(mDnsClient.netdService(), TEST_VPN_NETID, TEST_NETID); in TEST_F()
4454 INetd* netdService = mDnsClient.netdService(); in TEST_F() local
4466 ScopeBlockedUIDRule scopeBlockUidRule(netdService, TEST_UID); in TEST_F()
4521 INetd* netdService = mDnsClient.netdService(); in TEST_F() local
4524 ScopeBlockedUIDRule scopeBlockUidRule(netdService, TEST_UID); in TEST_F()
4552 INetd* netdService = mDnsClient.netdService(); in TEST_F() local
4568 ScopeBlockedUIDRule scopeBlockUidRule(netdService, TEST_UID); in TEST_F()
4602 ScopeBlockedUIDRule scopeBlockUidRule(netdService, TEST_UID); in TEST_F()
6281 ScopeBlockedUIDRule scopeBlockUidRule(mDnsClient.netdService(), TEST_UID); in TEST_F()
7214 ASSERT_NE(mDnsClient.netdService(), nullptr); in SetUp()
7222 mDnsClient.netdService()->networkSetDefault(mStoredDefaultNetwork); in TearDown()
7228 return {getFreeNetId(), type, mDnsClient.netdService(), mDnsClient.resolvService(), name}; in CreateScopedPhysicalNetwork()
7232 return {getFreeNetId(), type, mDnsClient.netdService(), mDnsClient.resolvService(), in CreateScopedVirtualNetwork()
7239 ASSERT_TRUE(mDnsClient.netdService()->networkGetDefault(&mStoredDefaultNetwork).isOk()); in setDefaultNetwork()
7241 ASSERT_TRUE(mDnsClient.netdService()->networkSetDefault(netId).isOk()); in setDefaultNetwork()
7483 mDnsClient.netdService(), in TEST_F()
7681 SKIP_IF_REMOTE_VERSION_LESS_THAN(mDnsClient.netdService(), 6); in TEST_F()
7722 mDnsClient.netdService() in TEST_F()
7784 ASSERT_TRUE(mDnsClient.netdService() in TEST_F()
7809 mDnsClient.netdService()->interfaceAddAddress(network.ifname(), v6Addr, 128).isOk()); in TEST_F()
7836 ASSERT_TRUE(mDnsClient.netdService() in TEST_F()
7901 ScopedDefaultNetwork scopedDefaultNetwork(mDnsClient.netdService(), NETID_UNSET); in TEST_F()
7926 SKIP_IF_REMOTE_VERSION_LESS_THAN(mDnsClient.netdService(), 13); in TEST_F()
7991 mDnsClient.netdService() in TEST_F()
8022 EXPECT_TRUE(mDnsClient.netdService()->setNetworkAllowlist({}).isOk()); in TEST_F()