• Home
  • Raw
  • Download

Lines Matching refs:isOk

324         EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage();  in TEST_F()
332 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage(); in TEST_F()
336 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage(); in TEST_F()
351 EXPECT_TRUE(res.isOk()); in TEST_F()
395 EXPECT_TRUE(status.isOk()) in TEST_F()
404 EXPECT_TRUE(status.isOk()); in TEST_F()
419 EXPECT_TRUE(status.isOk()) in TEST_F()
428 EXPECT_TRUE(status.isOk()); in TEST_F()
583 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
587 EXPECT_TRUE(mNetd->networkCreateVpn(TEST_NETID2, true).isOk()); in TEST_F()
589 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
593 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
594 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID2, sTun.name()).isOk()); in TEST_F()
595 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID2).isOk()); in TEST_F()
602 EXPECT_TRUE(mNetd->networkCreateVpn(TEST_NETID1, true).isOk()); in TEST_F()
604 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
611 EXPECT_TRUE(mNetd->networkAddUidRanges(TEST_NETID1, uidRanges).isOk()); in TEST_F()
615 EXPECT_TRUE(mNetd->networkRemoveUidRanges(TEST_NETID1, uidRanges).isOk()); in TEST_F()
618 EXPECT_TRUE(mNetd->networkAddUidRanges(TEST_NETID1, uidRanges).isOk()); in TEST_F()
620 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
636 ASSERT_TRUE(mNetd->networkRejectNonSecureVpn(true, uidRanges).isOk()); in TEST_F()
644 ASSERT_TRUE(mNetd->networkRejectNonSecureVpn(false, uidRanges).isOk()); in TEST_F()
725 EXPECT_TRUE(mNetd->socketDestroy(uidRanges, skipUids).isOk()); in TEST_F()
738 EXPECT_TRUE(mNetd->socketDestroy(uidRanges, skipUids).isOk()); in TEST_F()
743 EXPECT_TRUE(mNetd->socketDestroy(uidRanges, skipUids).isOk()); in TEST_F()
879 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
895 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
987 EXPECT_TRUE(mNetd->getProcSysNet(ipversion, category, tun, parameter, &value).isOk()); in TEST_F()
993 .isOk()); in TEST_F()
994 EXPECT_TRUE(mNetd->getProcSysNet(ipversion, category, tun, parameter, &value).isOk()); in TEST_F()
998 .isOk()); in TEST_F()
999 EXPECT_TRUE(mNetd->getProcSysNet(ipversion, category, tun, parameter, &value).isOk()); in TEST_F()
1073 EXPECT_TRUE(status.isOk()) << "Getting tethering stats failed: " << status; in TEST_F()
1158 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1162 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1212 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1221 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1280 EXPECT_FALSE(status.isOk()); in TEST_F()
1284 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
1285 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
1289 EXPECT_FALSE(status.isOk()); in TEST_F()
1294 EXPECT_FALSE(status.isOk()); in TEST_F()
1298 EXPECT_TRUE(mNetd->networkAddRoute(TEST_NETID1, sTun.name(), "::/0", "").isOk()); in TEST_F()
1302 EXPECT_FALSE(status.isOk()); in TEST_F()
1311 EXPECT_TRUE(status.isOk()); in TEST_F()
1316 EXPECT_FALSE(status.isOk()); in TEST_F()
1323 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1328 EXPECT_FALSE(status.isOk()); in TEST_F()
1333 EXPECT_TRUE(mNetd->networkRemoveRoute(TEST_NETID1, sTun.name(), "::/0", "").isOk()); in TEST_F()
1335 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
1395 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1402 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1406 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1411 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1415 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1421 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1427 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1433 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1439 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1447 mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
1448 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
1450 mNetd->networkCreatePhysical(TEST_NETID2, INetd::PERMISSION_NONE).isOk()); in TEST_F()
1451 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID2, sTun2.name()).isOk()); in TEST_F()
1455 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1459 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1584 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
1585 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
1588 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1592 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1596 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
1602 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
1603 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
1607 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1611 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1616 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1620 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
1627 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1632 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1645 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1650 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1655 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1660 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1825 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
1826 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
1835 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1840 EXPECT_TRUE(mNetd->networkSetPermissionForUser(INetd::PERMISSION_SYSTEM, testUids).isOk()); in TEST_F()
1844 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1849 EXPECT_TRUE(mNetd->networkClearPermissionForUser(testUids).isOk()); in TEST_F()
1853 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1864 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1874 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1883 EXPECT_TRUE(mNetd->networkSetPermissionForUser(INetd::PERMISSION_SYSTEM, testUids).isOk()); in TEST_F()
1888 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1899 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1908 EXPECT_TRUE(mNetd->networkClearPermissionForUser(testUids).isOk()); in TEST_F()
1913 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1924 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1934 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
1939 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
1940 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
1944 ASSERT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1948 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1952 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1957 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1961 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1966 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1971 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
1977 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
1983 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2062 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2067 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2071 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2075 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2083 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2088 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2092 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2096 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2106 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2110 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2282 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2286 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2292 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2298 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2303 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2310 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2313 EXPECT_FALSE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2317 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2320 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2324 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2329 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2341 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2347 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2353 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2359 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2365 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2371 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2376 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2382 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2388 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2393 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2399 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2405 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2413 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2417 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2421 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2425 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2429 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2433 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2461 EXPECT_TRUE(isOk(fd.status())); in ioctlByIfName()
2473 if (isOk(res.status())) { in getInterfaceHwAddr()
2484 if (isOk(res.status())) { in getInterfaceIPv4Prefix()
2496 if (isOk(res.status())) { in getInterfaceIPv4Addr()
2507 if (isOk(res.status())) { in getInterfaceFlags()
2526 EXPECT_TRUE(isOk(res)); in compareListInterface()
2629 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2637 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
2638 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
2641 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2646 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
2656 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
2657 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
2662 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2668 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2670 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2673 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
2679 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2684 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2694 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
2695 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
2699 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2703 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2707 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
2712 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
2713 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
2717 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2722 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2726 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
2733 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
2734 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
2737 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2741 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
2831 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2835 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
2856 EXPECT_TRUE(netd->setTcpRWmemorySize(testRmemValues, testWmemValues).isOk()); in updateAndCheckTcpBuffer()
2888 EXPECT_TRUE(isOk(permission)); in checkUidsInPermissionMap()
2891 EXPECT_FALSE(isOk(permission)); in checkUidsInPermissionMap()
2922 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
3022 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
3023 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID1, sTun.name()).isOk()); in TEST_F()
3047 EXPECT_TRUE(mNetd->networkDestroy(TEST_NETID1).isOk()); in TEST_F()
3053 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
3096 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
3112 EXPECT_TRUE(mNetd->networkCreatePhysical(fallthroughNetId, INetd::PERMISSION_NONE).isOk()); in createVpnNetworkWithUid()
3113 EXPECT_TRUE(mNetd->networkAddInterface(fallthroughNetId, sTun.name()).isOk()); in createVpnNetworkWithUid()
3116 EXPECT_TRUE(mNetd->networkCreateVpn(vpnNetId, secure).isOk()); in createVpnNetworkWithUid()
3119 EXPECT_TRUE(mNetd->networkAddUidRanges(vpnNetId, {makeUidRangeParcel(uid, uid)}).isOk()); in createVpnNetworkWithUid()
3120 EXPECT_TRUE(mNetd->networkAddInterface(vpnNetId, sTun2.name()).isOk()); in createVpnNetworkWithUid()
3123 EXPECT_TRUE(mNetd->networkAddRoute(TEST_NETID1, sTun.name(), "::/0", "").isOk()); in createVpnNetworkWithUid()
3125 EXPECT_TRUE(mNetd->networkAddRoute(TEST_NETID2, sTun2.name(), "2001:db8::/32", "").isOk()); in createVpnNetworkWithUid()
3199 EXPECT_TRUE(netdService->networkSetDefault(NETID_UNSET).isOk()); in expectVpnFallthroughWorks()
3220 EXPECT_TRUE(netdService->networkSetDefault(fallthroughNetId).isOk()); in expectVpnFallthroughWorks()
3276 ASSERT_TRUE(mNetd->networkGetDefault(&mStoredDefaultNetwork).isOk()); in TEST_F()
3283 ASSERT_TRUE(mNetd->networkGetDefault(&mStoredDefaultNetwork).isOk()); in TEST_F()