Lines Matching refs:isOk

286     EXPECT_FALSE(netd->networkCreate(config).isOk());  in testNetworkExistsButCannotConnect()
291 if (status.isOk()) { // clean up in testNetworkExistsButCannotConnect()
292 EXPECT_TRUE(netd->networkRemoveInterface(netId, ifc.name()).isOk()); in testNetworkExistsButCannotConnect()
345 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage(); in TEST_F()
353 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage(); in TEST_F()
357 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage(); in TEST_F()
372 EXPECT_TRUE(res.isOk()); in TEST_F()
416 EXPECT_TRUE(status.isOk()) in TEST_F()
425 EXPECT_TRUE(status.isOk()); in TEST_F()
440 EXPECT_TRUE(status.isOk()) in TEST_F()
449 EXPECT_TRUE(status.isOk()); in TEST_F()
631 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
639 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
641 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
645 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
646 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID2, sTun.name()).isOk()); in TEST_F()
647 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID2).isOk()); in TEST_F()
654 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
656 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
663 EXPECT_TRUE(mNetd->networkAddUidRanges(TEST_NETID1, uidRanges).isOk()); in TEST_F()
667 EXPECT_TRUE(mNetd->networkRemoveUidRanges(TEST_NETID1, uidRanges).isOk()); in TEST_F()
670 EXPECT_TRUE(mNetd->networkAddUidRanges(TEST_NETID1, uidRanges).isOk()); in TEST_F()
672 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
686 ASSERT_TRUE(mNetd->networkRejectNonSecureVpn(true, uidRanges).isOk()); in TEST_F()
692 ASSERT_TRUE(mNetd->networkRejectNonSecureVpn(false, uidRanges).isOk()); in TEST_F()
769 EXPECT_TRUE(mNetd->socketDestroy(uidRanges, skipUids).isOk()); in TEST_F()
782 EXPECT_TRUE(mNetd->socketDestroy(uidRanges, skipUids).isOk()); in TEST_F()
787 EXPECT_TRUE(mNetd->socketDestroy(uidRanges, skipUids).isOk()); in TEST_F()
802 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
804 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
843 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
990 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1006 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1023 ASSERT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1111 EXPECT_TRUE(mNetd->getProcSysNet(ipversion, category, tun, parameter, &value).isOk()); in TEST_F()
1117 .isOk()); in TEST_F()
1118 EXPECT_TRUE(mNetd->getProcSysNet(ipversion, category, tun, parameter, &value).isOk()); in TEST_F()
1122 .isOk()); in TEST_F()
1123 EXPECT_TRUE(mNetd->getProcSysNet(ipversion, category, tun, parameter, &value).isOk()); in TEST_F()
1200 EXPECT_TRUE(status.isOk()) << "Getting tethering stats failed: " << status; in TEST_F()
1285 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1289 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1339 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1348 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1407 EXPECT_FALSE(status.isOk()); in TEST_F()
1413 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
1414 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
1418 EXPECT_FALSE(status.isOk()); in TEST_F()
1423 EXPECT_FALSE(status.isOk()); in TEST_F()
1427 EXPECT_TRUE(mNetd->networkAddRoute(TEST_NETID1, sTun.name(), "::/0", "").isOk()); in TEST_F()
1431 EXPECT_FALSE(status.isOk()); in TEST_F()
1440 EXPECT_TRUE(status.isOk()); in TEST_F()
1445 EXPECT_FALSE(status.isOk()); in TEST_F()
1452 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1457 EXPECT_FALSE(status.isOk()); in TEST_F()
1462 EXPECT_TRUE(mNetd->networkRemoveRoute(TEST_NETID1, sTun.name(), "::/0", "").isOk()); in TEST_F()
1464 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
1526 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1533 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1537 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1542 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1546 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1552 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1558 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1564 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1570 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1579 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
1580 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
1583 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
1584 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID2, sTun2.name()).isOk()); in TEST_F()
1587 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1591 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1701 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
1702 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
1705 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1709 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1713 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
1721 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
1722 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
1726 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1730 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1735 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1739 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
1746 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1751 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1934 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
1935 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
1944 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1949 EXPECT_TRUE(mNetd->networkSetPermissionForUser(INetd::PERMISSION_SYSTEM, testUids).isOk()); in TEST_F()
1953 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1958 EXPECT_TRUE(mNetd->networkClearPermissionForUser(testUids).isOk()); in TEST_F()
1962 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1973 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1983 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1992 EXPECT_TRUE(mNetd->networkSetPermissionForUser(INetd::PERMISSION_SYSTEM, testUids).isOk()); in TEST_F()
1997 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2008 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2017 EXPECT_TRUE(mNetd->networkClearPermissionForUser(testUids).isOk()); in TEST_F()
2022 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2033 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2053 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2064 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2074 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2083 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
2090 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
2091 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
2095 ASSERT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2099 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2103 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2108 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2112 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2117 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2122 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
2127 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2133 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2137 EXPECT_TRUE(mNetd->networkClearPermissionForUser({TEST_UID1}).isOk()); in TEST_F()
2219 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2229 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2233 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2237 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2246 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2251 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2255 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2259 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2269 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2273 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2345 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2350 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2361 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2369 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2385 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2395 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2400 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2403 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2488 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2492 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2498 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2504 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2509 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2516 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2519 EXPECT_FALSE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2523 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2526 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2530 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2535 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2563 EXPECT_TRUE(isOk(fd.status())); in ioctlByIfName()
2575 if (isOk(res.status())) { in getInterfaceHwAddr()
2586 if (isOk(res.status())) { in getInterfaceIPv4Prefix()
2598 if (isOk(res.status())) { in getInterfaceIPv4Addr()
2609 if (isOk(res.status())) { in getInterfaceFlags()
2628 EXPECT_TRUE(isOk(res)); in compareListInterface()
2731 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2741 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
2742 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
2745 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2750 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
2762 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
2763 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
2768 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2774 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2776 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2779 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
2785 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2790 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2802 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
2803 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
2807 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2811 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2815 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
2822 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
2823 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
2827 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2832 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2836 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
2845 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
2846 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
2849 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2853 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
2943 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2947 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2968 EXPECT_TRUE(netd->setTcpRWmemorySize(testRmemValues, testWmemValues).isOk()); in updateAndCheckTcpBuffer()
3031 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
3133 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
3134 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
3158 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
3164 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
3207 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
3225 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in createVpnNetworkWithUid()
3226 EXPECT_TRUE(mNetd->networkAddInterface(fallthroughNetId, sTun.name()).isOk()); in createVpnNetworkWithUid()
3232 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in createVpnNetworkWithUid()
3235 EXPECT_TRUE(mNetd->networkAddUidRanges(vpnNetId, {makeUidRangeParcel(uid, uid)}).isOk()); in createVpnNetworkWithUid()
3236 EXPECT_TRUE(mNetd->networkAddInterface(vpnNetId, sTun2.name()).isOk()); in createVpnNetworkWithUid()
3239 EXPECT_TRUE(mNetd->networkAddRoute(TEST_NETID1, sTun.name(), "::/0", "").isOk()); in createVpnNetworkWithUid()
3241 EXPECT_TRUE(mNetd->networkAddRoute(TEST_NETID2, sTun2.name(), "2001:db8::/32", "").isOk()); in createVpnNetworkWithUid()
3247 ASSERT_TRUE(mNetd->networkGetDefault(&mStoredDefaultNetwork).isOk()); in createAndSetDefaultNetwork()
3251 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in createAndSetDefaultNetwork()
3252 EXPECT_TRUE(mNetd->networkAddInterface(netId, interface).isOk()); in createAndSetDefaultNetwork()
3253 EXPECT_TRUE(mNetd->networkSetDefault(netId).isOk()); in createAndSetDefaultNetwork()
3260 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in createPhysicalNetwork()
3261 EXPECT_TRUE(mNetd->networkAddInterface(netId, interface).isOk()); in createPhysicalNetwork()
3268 EXPECT_TRUE(mNetd->networkAddRoute(defaultNetId, sTun.name(), "::/0", "").isOk()); in createDefaultAndOtherPhysicalNetwork()
3271 EXPECT_TRUE(mNetd->networkAddRoute(otherNetId, sTun2.name(), "::/0", "").isOk()); in createDefaultAndOtherPhysicalNetwork()
3282 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in createVpnAndOtherPhysicalNetwork()
3283 EXPECT_TRUE(mNetd->networkAddInterface(vpnNetId, sTun3.name()).isOk()); in createVpnAndOtherPhysicalNetwork()
3284 EXPECT_TRUE(mNetd->networkAddRoute(vpnNetId, sTun3.name(), "2001:db8::/32", "").isOk()); in createVpnAndOtherPhysicalNetwork()
3295 EXPECT_TRUE(mNetd->networkAddUidRanges(appDefaultNetId, appDefaultUidRanges).isOk()); in createVpnAndAppDefaultNetworkWithUid()
3297 EXPECT_TRUE(mNetd->networkAddUidRanges(vpnNetId, vpnUidRanges).isOk()); in createVpnAndAppDefaultNetworkWithUid()
3410 EXPECT_TRUE(netdService->networkSetDefault(NETID_UNSET).isOk()); in expectVpnFallthroughWorks()
3431 EXPECT_TRUE(netdService->networkSetDefault(fallthroughNetId).isOk()); in expectVpnFallthroughWorks()
3487 ASSERT_TRUE(mNetd->networkGetDefault(&mStoredDefaultNetwork).isOk()); in TEST_F()
3494 ASSERT_TRUE(mNetd->networkGetDefault(&mStoredDefaultNetwork).isOk()); in TEST_F()
3523 ASSERT_TRUE(mNetd->networkGetDefault(&mStoredDefaultNetwork).isOk()); in TEST_F()
3528 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
3529 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
3530 EXPECT_TRUE(mNetd->networkAddRoute(TEST_NETID1, sTun.name(), "2001:db8::/32", "").isOk()); in TEST_F()
3531 EXPECT_TRUE(mNetd->networkSetDefault(TEST_NETID1).isOk()); in TEST_F()
3534 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
3535 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID2, sTun2.name()).isOk()); in TEST_F()
3539 ASSERT_TRUE(mNetd->getFwmarkForNetwork(TEST_NETID1, &maskMarkNet1).isOk()); in TEST_F()
3548 ASSERT_TRUE(mNetd->getFwmarkForNetwork(TEST_NETID2, &maskMarkNet2).isOk()); in TEST_F()
3553 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID2).isOk()); in TEST_F()
3554 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
3596 EXPECT_FALSE(status.isOk()); in TEST_F()
3603 EXPECT_FALSE(status.isOk()); in TEST_F()
3610 EXPECT_FALSE(status.isOk()); in TEST_F()
3617 EXPECT_FALSE(status.isOk()); in TEST_F()
3623 EXPECT_FALSE(status.isOk()); in TEST_F()
3626 EXPECT_FALSE(status.isOk()); in TEST_F()
3632 EXPECT_FALSE(status.isOk()); in TEST_F()
3636 EXPECT_FALSE(status.isOk()); in TEST_F()
3642 EXPECT_FALSE(status.isOk()); in TEST_F()
3648 EXPECT_FALSE(status.isOk()); in TEST_F()
3653 EXPECT_TRUE(mNetd->tetherOffloadRuleRemove(rule).isOk()); in TEST_F()
3657 EXPECT_TRUE(mNetd->tetherOffloadRuleAdd(rule).isOk()); in TEST_F()
3658 EXPECT_TRUE(mNetd->tetherOffloadRuleRemove(rule).isOk()); in TEST_F()
3741 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
3742 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
3758 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
3760 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
3766 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
3770 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
3772 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
3782 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
3788 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
3806 EXPECT_TRUE(mNetd->tetherOffloadRuleRemove(rule).isOk()); in TEST_F()
3809 EXPECT_TRUE(mNetd->tetherOffloadGetAndClearStats(sTun.ifindex(), &tetherStats).isOk()); in TEST_F()
3817 EXPECT_TRUE(mNetd->ipfwdRemoveInterfaceForward(tap.name(), sTun.name()).isOk()); in TEST_F()
3818 EXPECT_TRUE(mNetd->tetherRemoveForward(tap.name(), sTun.name()).isOk()); in TEST_F()
3820 .isOk()); in TEST_F()
3821 EXPECT_TRUE(mNetd->tetherInterfaceRemove(tap.name()).isOk()); in TEST_F()
3822 EXPECT_TRUE(mNetd->networkRemoveInterface(INetd::LOCAL_NET_ID, tap.name()).isOk()); in TEST_F()
3823 EXPECT_TRUE(mNetd->networkRemoveInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
3874 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
3887 EXPECT_TRUE(mNetd->networkAddInterface(TEST_DUMP_NETID, sTun.name()).isOk()); in TEST_F()
3896 EXPECT_TRUE(mNetd->networkAddRouteParcel(TEST_DUMP_NETID, parcel).isOk()); in TEST_F()
3904 EXPECT_TRUE(mNetd->networkDestroy(TEST_DUMP_NETID).isOk()); in TEST_F()
3940 ASSERT_FALSE(status.isOk()); in TEST_F()
3947 ASSERT_FALSE(status.isOk()); in TEST_F()
3954 ASSERT_FALSE(status.isOk()); in TEST_F()
3960 ASSERT_FALSE(status.isOk()); in TEST_F()
3967 ASSERT_FALSE(status.isOk()); in TEST_F()
4103 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
4104 EXPECT_TRUE(mNetd->networkAddInterface(APP_DEFAULT_NETID, sTun.name()).isOk()); in TEST_F()
4108 EXPECT_TRUE(mNetd->networkAddUidRanges(APP_DEFAULT_NETID, uidRanges).isOk()); in TEST_F()
4113 EXPECT_FALSE(status.isOk()); in TEST_F()
4118 EXPECT_FALSE(status.isOk()); in TEST_F()
4123 EXPECT_FALSE(status.isOk()); in TEST_F()
4128 EXPECT_FALSE(status.isOk()); in TEST_F()
4133 EXPECT_FALSE(status.isOk()); in TEST_F()
4140 EXPECT_FALSE(status.isOk()); in TEST_F()
4148 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
4149 EXPECT_TRUE(mNetd->networkAddInterface(APP_DEFAULT_NETID, sTun.name()).isOk()); in TEST_F()
4154 EXPECT_TRUE(mNetd->networkAddUidRanges(APP_DEFAULT_NETID, uidRanges).isOk()); in TEST_F()
4157 EXPECT_TRUE(mNetd->networkRemoveUidRanges(APP_DEFAULT_NETID, {uidRanges.at(0)}).isOk()); in TEST_F()
4160 EXPECT_TRUE(mNetd->networkRemoveUidRanges(APP_DEFAULT_NETID, {uidRanges.at(1)}).isOk()); in TEST_F()
4164 EXPECT_TRUE(mNetd->networkAddUidRanges(INetd::UNREACHABLE_NET_ID, uidRanges).isOk()); in TEST_F()
4167 EXPECT_TRUE(mNetd->networkRemoveUidRanges(INetd::UNREACHABLE_NET_ID, {uidRanges.at(0)}).isOk()); in TEST_F()
4170 EXPECT_TRUE(mNetd->networkRemoveUidRanges(INetd::UNREACHABLE_NET_ID, {uidRanges.at(1)}).isOk()); in TEST_F()
4194 .isOk()); in TEST_F()
4201 .isOk()); in TEST_F()
4208 .isOk()); in TEST_F()
4215 .isOk()); in TEST_F()
4235 .isOk()); in TEST_F()
4242 .isOk()); in TEST_F()
4247 .isOk()); in TEST_F()
4274 .isOk()); in TEST_F()
4284 .isOk()); in TEST_F()
4292 .isOk()); in TEST_F()
4299 .isOk()); in TEST_F()
4312 .isOk()); in TEST_F()
4476 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
4477 EXPECT_TRUE(mNetd->networkDestroy(config.netId).isOk()); in TEST_F()
4482 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_F()
4504 EXPECT_FALSE(status.isOk()); in TEST_F()
4510 EXPECT_FALSE(status.isOk()); in TEST_F()
4517 EXPECT_FALSE(status.isOk()); in TEST_F()
4523 EXPECT_TRUE(mNetd->networkAddUidRangesParcel(uidRangeConfig).isOk()); in TEST_F()
4525 EXPECT_TRUE(mNetd->networkAddUidRangesParcel(uidRangeConfig).isOk()); in TEST_F()
4529 EXPECT_FALSE(status.isOk()); in TEST_F()
4536 EXPECT_FALSE(status.isOk()); in TEST_F()
4544 EXPECT_TRUE(mNetd->networkAddRoute(TEST_NETID1, sTun.name(), "::/0", "").isOk()); in TEST_F()
4546 EXPECT_TRUE(mNetd->networkAddRoute(TEST_NETID2, sTun2.name(), "::/0", "").isOk()); in TEST_F()
4551 EXPECT_TRUE(mNetd->networkAddUidRangesParcel(uidRangeConfig1).isOk()); in TEST_F()
4556 EXPECT_TRUE(mNetd->networkAddUidRangesParcel(uidRangeConfig2).isOk()); in TEST_F()
4562 EXPECT_TRUE(mNetd->networkAddUidRangesParcel(uidRangeConfig3).isOk()); in TEST_F()
4566 EXPECT_TRUE(mNetd->networkRemoveUidRangesParcel(uidRangeConfig1).isOk()); in TEST_F()
4570 EXPECT_TRUE(mNetd->networkRemoveUidRangesParcel(uidRangeConfig2).isOk()); in TEST_F()
4574 EXPECT_TRUE(mNetd->networkRemoveUidRangesParcel(uidRangeConfig3).isOk()); in TEST_F()
4588 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_P()
4589 EXPECT_TRUE(mNetd->networkAddInterface(VPN_NETID, sTun.name()).isOk()); in TEST_P()
4593 EXPECT_TRUE(mNetd->networkCreate(config).isOk()); in TEST_P()
4594 EXPECT_TRUE(mNetd->networkAddInterface(VPN_NETID2, sTun2.name()).isOk()); in TEST_P()
4599 EXPECT_TRUE(mNetd->networkAddUidRangesParcel(uidRangeConfig1).isOk()); in TEST_P()
4605 EXPECT_TRUE(mNetd->networkAddUidRangesParcel(uidRangeConfig2).isOk()); in TEST_P()
4609 EXPECT_TRUE(mNetd->networkRemoveUidRangesParcel(uidRangeConfig1).isOk()); in TEST_P()
4612 EXPECT_TRUE(mNetd->networkRemoveUidRangesParcel(uidRangeConfig2).isOk()); in TEST_P()
4658 EXPECT_TRUE(mNetd->networkAddRoute(APP_DEFAULT_2_NETID, sTun4.name(), "::/0", "").isOk()); in TEST_F()
4663 EXPECT_TRUE(mNetd->networkAddUidRangesParcel(uidRangeConfigVpn).isOk()); in TEST_F()
4670 EXPECT_TRUE(mNetd->networkAddUidRangesParcel(uidRangeConfig1).isOk()); in TEST_F()
4673 EXPECT_TRUE(mNetd->networkAddUidRangesParcel(uidRangeConfig1).isOk()); in TEST_F()
4676 EXPECT_TRUE(mNetd->networkAddUidRangesParcel(uidRangeConfig1).isOk()); in TEST_F()
4681 EXPECT_TRUE(mNetd->networkAddUidRangesParcel(uidRangeConfig2).isOk()); in TEST_F()
4685 EXPECT_TRUE(mNetd->networkAddUidRangesParcel(uidRangeConfig2).isOk()); in TEST_F()
4700 EXPECT_TRUE(mNetd->networkRemoveUidRangesParcel(uidRangeConfig1).isOk()); in TEST_F()