• Home
  • Raw
  • Download

Lines Matching refs:td

317         const auto& td = kTestData[i];  in TEST_F()  local
322 status = mNetd->ipSecAddTunnelInterface(td.deviceName, td.localAddress, td.remoteAddress, in TEST_F()
323 td.iKey, td.oKey, td.ifId); in TEST_F()
324 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage(); in TEST_F()
327 EXPECT_NE(0U, if_nametoindex(td.deviceName.c_str())); in TEST_F()
330 status = mNetd->ipSecUpdateTunnelInterface(td.deviceName, td.localAddress, td.remoteAddress, in TEST_F()
331 td.iKey, td.oKey, td.ifId); in TEST_F()
332 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage(); in TEST_F()
335 status = mNetd->ipSecRemoveTunnelInterface(td.deviceName); in TEST_F()
336 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage(); in TEST_F()
339 EXPECT_EQ(0U, if_nametoindex(td.deviceName.c_str())); in TEST_F()
873 const auto &td = kTestData[i]; in TEST_F() local
877 sTun.name(), td.addrString, td.prefixLength); in TEST_F()
878 if (td.expectSuccess) { in TEST_F()
886 if (td.expectSuccess) { in TEST_F()
887 EXPECT_TRUE(interfaceHasAddress(sTun.name(), td.addrString, td.prefixLength)); in TEST_F()
889 EXPECT_FALSE(interfaceHasAddress(sTun.name(), td.addrString, -1)); in TEST_F()
893 status = mNetd->interfaceDelAddress(sTun.name(), td.addrString, td.prefixLength); in TEST_F()
894 if (td.expectSuccess) { in TEST_F()
902 EXPECT_FALSE(interfaceHasAddress(sTun.name(), td.addrString, -1)); in TEST_F()
926 const auto& td = kTestData[i]; in TEST_F() local
930 mNetd->getProcSysNet(td.ipversion, td.which, td.ifname, td.parameter, &value); in TEST_F()
932 if (td.expectedReturnCode == 0) { in TEST_F()
936 EXPECT_EQ(td.expectedValue, value); in TEST_F()
940 EXPECT_EQ(td.expectedReturnCode, status.serviceSpecificErrorCode()); in TEST_F()
964 const auto& td = kTestData[i]; in TEST_F() local
966 mNetd->setProcSysNet(td.ipversion, td.which, td.ifname, td.parameter, td.value); in TEST_F()
968 if (td.expectedReturnCode == 0) { in TEST_F()
975 EXPECT_EQ(td.expectedReturnCode, status.serviceSpecificErrorCode()); in TEST_F()
1156 for (const auto& td : idleTestData) { in TEST_F() local
1157 status = mNetd->idletimerAddInterface(td.ifname, td.timeout, td.classLabel); in TEST_F()
1159 expectIdletimerInterfaceRuleExists(td.ifname, td.timeout, td.classLabel); in TEST_F()
1161 status = mNetd->idletimerRemoveInterface(td.ifname, td.timeout, td.classLabel); in TEST_F()
1163 expectIdletimerInterfaceRuleNotExists(td.ifname, td.timeout, td.classLabel); in TEST_F()
1830 const auto& td = kTestDataWithNextHop[i]; in TEST_F() local
1834 mNetd->networkAddRoute(TEST_NETID1, sTun.name(), td.testDest, td.testNextHop); in TEST_F()
1836 expectNetworkRouteExists(td.ipVersion, sTun.name(), td.testDest, td.testNextHop, in TEST_F()
1842 status = mNetd->networkAddLegacyRoute(TEST_NETID1, sTun.name(), td.testDest, td.testNextHop, in TEST_F()
1845 expectNetworkRouteExists(td.ipVersion, sTun.name(), td.testDest, td.testNextHop, in TEST_F()
1851 status = mNetd->networkAddLegacyRoute(TEST_NETID1, sTun.name(), td.testDest, td.testNextHop, in TEST_F()
1854 expectNetworkRouteExists(td.ipVersion, sTun.name(), td.testDest, td.testNextHop, in TEST_F()
1859 const auto& td = kTestData[i]; in TEST_F() local
1862 mNetd->networkAddRoute(TEST_NETID1, sTun.name(), td.testDest, td.testNextHop); in TEST_F()
1863 if (td.expectSuccess) { in TEST_F()
1865 expectNetworkRouteExists(td.ipVersion, sTun.name(), td.testDest, td.testNextHop, in TEST_F()
1872 status = mNetd->networkRemoveRoute(TEST_NETID1, sTun.name(), td.testDest, td.testNextHop); in TEST_F()
1873 if (td.expectSuccess) { in TEST_F()
1875 expectNetworkRouteDoesNotExist(td.ipVersion, sTun.name(), td.testDest, td.testNextHop, in TEST_F()
1885 status = mNetd->networkAddLegacyRoute(TEST_NETID1, sTun.name(), td.testDest, td.testNextHop, in TEST_F()
1887 if (td.expectSuccess) { in TEST_F()
1889 expectNetworkRouteExists(td.ipVersion, sTun.name(), td.testDest, td.testNextHop, in TEST_F()
1896 status = mNetd->networkRemoveLegacyRoute(TEST_NETID1, sTun.name(), td.testDest, in TEST_F()
1897 td.testNextHop, testUid); in TEST_F()
1898 if (td.expectSuccess) { in TEST_F()
1900 expectNetworkRouteDoesNotExist(td.ipVersion, sTun.name(), td.testDest, td.testNextHop, in TEST_F()
1910 status = mNetd->networkAddLegacyRoute(TEST_NETID1, sTun.name(), td.testDest, td.testNextHop, in TEST_F()
1912 if (td.expectSuccess) { in TEST_F()
1914 expectNetworkRouteExists(td.ipVersion, sTun.name(), td.testDest, td.testNextHop, in TEST_F()
1921 status = mNetd->networkRemoveLegacyRoute(TEST_NETID1, sTun.name(), td.testDest, in TEST_F()
1922 td.testNextHop, testUid); in TEST_F()
1923 if (td.expectSuccess) { in TEST_F()
1925 expectNetworkRouteDoesNotExist(td.ipVersion, sTun.name(), td.testDest, td.testNextHop, in TEST_F()
3025 for (const auto& td : kTestData) { in TEST_F() local
3028 td.testDest, td.testNextHop); in TEST_F()
3031 sTun.name().c_str(), td.testDest, td.testNextHop); in TEST_F()
3035 EXPECT_EQ(td.expectedResult, Trim(result[0])); in TEST_F()
3036 if (td.expectSuccess) { in TEST_F()
3037 expectNetworkRouteExists(td.ipVersion, sTun.name(), td.testDest, td.testNextHop, in TEST_F()
3041 EXPECT_EQ(td.expectedResult, Trim(result[0])); in TEST_F()
3042 expectNetworkRouteDoesNotExist(td.ipVersion, sTun.name(), td.testDest, td.testNextHop, in TEST_F()