Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/
Dresolv_cache_unit_test.cpp43 constexpr int TEST_NETID = 30; variable
150 cacheDelete(TEST_NETID); in ~ResolvCacheTest()
270 EXPECT_EQ(0, cacheCreate(TEST_NETID)); in TEST_F()
271 EXPECT_EQ(-EEXIST, cacheCreate(TEST_NETID)); in TEST_F()
272 EXPECT_TRUE(has_named_cache(TEST_NETID)); in TEST_F()
280 cacheDelete(TEST_NETID); in TEST_F()
281 EXPECT_FALSE(has_named_cache(TEST_NETID)); in TEST_F()
287 EXPECT_EQ(0, cacheCreate(TEST_NETID)); in TEST_F()
293 EXPECT_EQ(-EINVAL, cacheAdd(TEST_NETID, queryEmpty, ce.answer)); in TEST_F()
294 EXPECT_EQ(-EINVAL, cacheAdd(TEST_NETID, queryTooSmall, ce.answer)); in TEST_F()
[all …]
Dresolv_callback_unit_test.cpp109 android::net::gDnsResolv->resolverCtrl.createNetworkCache(TEST_NETID); in SetUp()
117 android::net::gDnsResolv->resolverCtrl.destroyNetworkCache(TEST_NETID); in TearDown()
131 return resolv_set_nameservers(TEST_NETID, servers, domains, params); in SetResolvers()
135 .app_netid = TEST_NETID,
137 .dns_netid = TEST_NETID,
Dresolv_unit_test.cpp62 resolv_create_cache_for_net(TEST_NETID); in SetUp()
66 resolv_delete_cache_for_net(TEST_NETID); in TearDown()
127 return resolv_set_nameservers(TEST_NETID, servers, domains, params); in SetResolvers()
131 .app_netid = TEST_NETID,
133 .dns_netid = TEST_NETID,
1465 EXPECT_EQ(0, resolv_set_nameservers(TEST_NETID, servers, domains, params, resolverOptions, in TEST_F()
1467 EXPECT_THAT(getCustomizedTableByName(TEST_NETID, hostnameV4V6), in TEST_F()
1471 ASSERT_TRUE(getCustomizedTableByName(TEST_NETID, "not.in.cust.table").empty()); in TEST_F()
1474 ASSERT_TRUE(getCustomizedTableByName(TEST_NETID + 1, hostnameV4V6).empty()); in TEST_F()
1475 resolv_create_cache_for_net(TEST_NETID + 1); in TEST_F()
[all …]
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder_client_ndk.cpp29 #define TEST_NETID 30 macro
143 makeResolverParamsParcel(TEST_NETID, params, servers, domains, "", {}, ""); in SetResolversForNetwork()
153 const auto& resolverParams = makeResolverParamsParcel(TEST_NETID, params, servers, domains, in SetResolversWithTls()
167 return makeResolverParamsParcel(TEST_NETID, kDefaultParams, kDefaultServers, in GetDefaultResolverParamsParcel()
192 mNetdSrv->networkDestroy(TEST_NETID); in SetupOemNetwork()
193 mDnsResolvSrv->destroyNetworkCache(TEST_NETID); in SetupOemNetwork()
194 auto ret = mNetdSrv->networkCreatePhysical(TEST_NETID, INetd::PERMISSION_NONE); in SetupOemNetwork()
196 fprintf(stderr, "Creating physical network %d failed, %s\n", TEST_NETID, ret.getMessage()); in SetupOemNetwork()
199 ret = mDnsResolvSrv->createNetworkCache(TEST_NETID); in SetupOemNetwork()
201 fprintf(stderr, "Creating network cache %d failed, %s\n", TEST_NETID, ret.getMessage()); in SetupOemNetwork()
[all …]
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp195 TEST_NETID /*monitor specific network*/); in SetUpTestSuite()
255 TEST_NETID, eventType, returnCode, in ExpectDnsEvent()
285 if (!DnsResponderClient::GetResolverInfo(mDnsClient.resolvService(), TEST_NETID, in expectStatsFromGetResolverInfo()
614 mDnsClient.resolvService(), TEST_NETID, &res_servers, &res_domains, &res_tls_servers, in TEST_F()
803 mDnsClient.resolvService(), TEST_NETID, &res_servers, &res_domains, in TEST_F()
1074 mDnsClient.resolvService(), TEST_NETID, &res_servers, &res_domains, &res_tls_servers, in TEST_F()
1281 EXPECT_TRUE(mDnsClient.resolvService()->flushNetworkCache(TEST_NETID).isOk()); in TEST_F()
1330 mDnsClient.resolvService(), TEST_NETID, &res_servers, &res_domains, &res_tls_servers, in TEST_F()
1443 const auto& res_domains1 = getResolverDomains(mDnsClient.resolvService(), TEST_NETID); in TEST_F()
1460 const auto& res_domains2 = getResolverDomains(mDnsClient.resolvService(), TEST_NETID); in TEST_F()
[all …]
Dresolv_gold_test.cpp83 resolv_create_cache_for_net(TEST_NETID); in SetUp()
88 gPrivateDnsConfiguration.clear(TEST_NETID); in TearDown()
90 resolv_delete_cache_for_net(TEST_NETID); in TearDown()
105 fwmark.netId = TEST_NETID;
109 ASSERT_EQ(gPrivateDnsConfiguration.set(TEST_NETID, fwmark.intValue, tlsServers, tlsHostname,
112 ASSERT_EQ(resolv_set_nameservers(TEST_NETID, servers, domains, kParams), 0);
132 gPrivateDnsConfiguration.getStatus(TEST_NETID).validatedServers(); in WaitForPrivateDnsValidation()
260 .app_netid = TEST_NETID,
262 .dns_netid = TEST_NETID,
267 .app_netid = TEST_NETID,
[all …]
Ddnsresolver_binder_test.cpp53 constexpr int TEST_NETID = 30; variable
64 mDnsResolver->createNetworkCache(TEST_NETID); in DnsResolverBinderTest()
69 mDnsResolver->destroyNetworkCache(TEST_NETID); in ~DnsResolverBinderTest()
128 {TEST_NETID, INetdEventListener::EVENT_GETADDRINFO, 0 /*success*/, 1, "hi", "1.2.3.4"}, in TEST_F()
129 {TEST_NETID, INetdEventListener::EVENT_GETADDRINFO, EAI_NODATA, 0, "nonexistent", ""}, in TEST_F()
234 TEST_NETID, test_params, LOCALLY_ASSIGNED_DNS, {}, td.tlsName, td.servers); in TEST_F()
291 TEST_NETID, testParams, servers, domains, "", {}); in TEST_F()
301 status = mDnsResolver->getResolverInfo(TEST_NETID, &res_servers, &res_domains, &res_tls_servers, in TEST_F()
334 const int ANOTHER_TEST_NETID = TEST_NETID + 1; in TEST_F()
359 EXPECT_TRUE(mDnsResolver->flushNetworkCache(TEST_NETID).isOk()); in TEST_F()
Dresolv_stress_test.cpp91 mDnsClient.resolvService(), TEST_NETID, &res_servers, &res_domains, in RunGetAddrInfoStressTest()
Dresolv_test_utils.h84 constexpr int TEST_NETID = 30; variable
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DCaptivePortalLoginActivityTest.java106 private static final int TEST_NETID = 1234; field in CaptivePortalLoginActivityTest
114 private Network mNetwork = new Network(TEST_NETID);
261 final Network network1 = new Network(TEST_NETID + 1); in configVpnNetwork()
262 final Network network2 = new Network(TEST_NETID + 2); in configVpnNetwork()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java235 private @Spy Network mCleartextDnsNetwork = new Network(TEST_NETID);
247 private static final int TEST_NETID = 4242; field in NetworkMonitorTest
1738 assertEquals(TEST_NETID, bundleNetwork.netId);
1742 assertEquals(TEST_NETID, networkCaptor.getValue().netId);
2322 assertEquals(TEST_NETID, bundleNetwork.netId);
2326 assertEquals(TEST_NETID, networkCaptor.getValue().netId);