Lines Matching refs:TEST_NETID1

114 static const int TEST_NETID1 = 65501;  variable
143 mNetd->networkDestroy(TEST_NETID1); in TearDown()
170 int fallthroughNetId = TEST_NETID1);
547 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
548 EXPECT_EQ(EEXIST, mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE) in TEST_F()
550 EXPECT_EQ(EEXIST, mNetd->networkCreateVpn(TEST_NETID1, true).serviceSpecificErrorCode()); in TEST_F()
553 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
557 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
560 EXPECT_EQ(ENONET, mNetd->networkDestroy(TEST_NETID1).serviceSpecificErrorCode()); in TEST_F()
566 EXPECT_TRUE(mNetd->networkCreateVpn(TEST_NETID1, true).isOk()); in TEST_F()
567 EXPECT_EQ(EEXIST, mNetd->networkCreateVpn(TEST_NETID1, true).serviceSpecificErrorCode()); in TEST_F()
568 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
575 EXPECT_TRUE(mNetd->networkAddUidRanges(TEST_NETID1, uidRanges).isOk()); in TEST_F()
579 EXPECT_TRUE(mNetd->networkRemoveUidRanges(TEST_NETID1, uidRanges).isOk()); in TEST_F()
582 EXPECT_TRUE(mNetd->networkAddUidRanges(TEST_NETID1, uidRanges).isOk()); in TEST_F()
584 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
587 EXPECT_EQ(ENONET, mNetd->networkDestroy(TEST_NETID1).serviceSpecificErrorCode()); in TEST_F()
1258 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
1259 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
1272 EXPECT_TRUE(mNetd->networkAddRoute(TEST_NETID1, sTun.name(), "::/0", "").isOk()); in TEST_F()
1307 EXPECT_TRUE(mNetd->networkRemoveRoute(TEST_NETID1, sTun.name(), "::/0", "").isOk()); in TEST_F()
1309 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
1420 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
1421 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
1555 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
1556 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
1567 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
1573 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
1574 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
1591 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
1807 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
1808 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
1816 mNetd->networkAddRoute(TEST_NETID1, sTun.name(), td.testDest, td.testNextHop); in TEST_F()
1824 status = mNetd->networkAddLegacyRoute(TEST_NETID1, sTun.name(), td.testDest, td.testNextHop, in TEST_F()
1833 status = mNetd->networkAddLegacyRoute(TEST_NETID1, sTun.name(), td.testDest, td.testNextHop, in TEST_F()
1844 mNetd->networkAddRoute(TEST_NETID1, sTun.name(), td.testDest, td.testNextHop); in TEST_F()
1854 status = mNetd->networkRemoveRoute(TEST_NETID1, sTun.name(), td.testDest, td.testNextHop); in TEST_F()
1867 status = mNetd->networkAddLegacyRoute(TEST_NETID1, sTun.name(), td.testDest, td.testNextHop, in TEST_F()
1878 status = mNetd->networkRemoveLegacyRoute(TEST_NETID1, sTun.name(), td.testDest, in TEST_F()
1892 status = mNetd->networkAddLegacyRoute(TEST_NETID1, sTun.name(), td.testDest, td.testNextHop, in TEST_F()
1903 status = mNetd->networkRemoveLegacyRoute(TEST_NETID1, sTun.name(), td.testDest, in TEST_F()
1924 binder::Status status = mNetd->networkAddRouteParcel(TEST_NETID1, parcel); in TEST_F()
1935 status = mNetd->networkUpdateRouteParcel(TEST_NETID1, parcel); in TEST_F()
1945 status = mNetd->networkRemoveRouteParcel(TEST_NETID1, parcel); in TEST_F()
1956 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
1961 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
1962 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
1969 status = mNetd->networkSetDefault(TEST_NETID1); in TEST_F()
1982 status = mNetd->networkSetPermissionForNetwork(TEST_NETID1, INetd::PERMISSION_SYSTEM); in TEST_F()
1987 status = mNetd->networkSetPermissionForNetwork(TEST_NETID1, INetd::PERMISSION_NONE); in TEST_F()
1993 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
2139 binder::Status status = mNetd->tetherDnsSet(TEST_NETID1, testDnsAddrs); in TEST_F()
2800 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
2801 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
2809 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
2819 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
2820 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
2836 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
2857 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
2858 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
2870 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
2875 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
2876 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
2889 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
2896 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
2897 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
2904 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
3122 {StringPrintf("ndc network create %d", TEST_NETID1), in TEST_F()
3124 {StringPrintf("ndc network interface add %d %s", TEST_NETID1, sTun.name().c_str()), in TEST_F()
3126 {StringPrintf("ndc network interface remove %d %s", TEST_NETID1, sTun.name().c_str()), in TEST_F()
3130 {StringPrintf("ndc network destroy %d", TEST_NETID1), in TEST_F()
3184 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
3185 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
3189 StringPrintf("ndc network route add %d %s %s %s", TEST_NETID1, sTun.name().c_str(), in TEST_F()
3192 StringPrintf("ndc network route remove %d %s %s %s", TEST_NETID1, in TEST_F()
3209 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
3285 EXPECT_TRUE(mNetd->networkAddRoute(TEST_NETID1, sTun.name(), "::/0", "").isOk()); in createVpnNetworkWithUid()
3363 int fallthroughNetId = TEST_NETID1) { in expectVpnFallthroughWorks()
3484 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
3485 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
3486 EXPECT_TRUE(mNetd->networkAddRoute(TEST_NETID1, sTun.name(), "2001:db8::/32", "").isOk()); in TEST_F()
3487 EXPECT_TRUE(mNetd->networkSetDefault(TEST_NETID1).isOk()); in TEST_F()
3494 ASSERT_TRUE(mNetd->getFwmarkForNetwork(TEST_NETID1, &maskMarkNet1).isOk()); in TEST_F()
3509 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
3675 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
3676 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
3754 EXPECT_TRUE(mNetd->networkRemoveInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()