Home
last modified time | relevance | path

Searched refs:sTun2 (Results 1 – 2 of 2) sorted by relevance

/system/hardware/interfaces/net/netd/1.1/vts/functional/
DVtsHalNetNetdV1_1TargetTest.cpp107 static TunInterface sTun2; member in NetdHidlTest
114 ASSERT_EQ(0, sTun2.init()); in SetUpTestCase()
116 ASSERT_LE(sTun2.name().size(), static_cast<size_t>(IFNAMSIZ)); in SetUpTestCase()
119 ASSERT_EQ(0, ifc_up(sTun2.name().c_str())); in SetUpTestCase()
125 sTun2.destroy(); in TearDownTestCase()
175 TunInterface NetdHidlTest::sTun2; member in NetdHidlTest
287 retStatus = netd->addInterfaceToOemNetwork(mNetHandle, sTun2.name().c_str()); in TEST_F()
295 StringPrintf(regexTemplate, sTun1.name().c_str(), sTun2.name().c_str(), table2); in TEST_F()
297 StringPrintf(regexTemplate, sTun2.name().c_str(), sTun1.name().c_str(), table1); in TEST_F()
302 retStatus = netd->setForwardingBetweenInterfaces(sTun1.name(), sTun2.name(), true); in TEST_F()
[all …]
/system/netd/tests/
Dbinder_test.cpp155 ASSERT_EQ(0, sTun2.init()); in SetUpTestCase()
157 ASSERT_LE(sTun2.name().size(), static_cast<size_t>(IFNAMSIZ)); in SetUpTestCase()
163 sTun2.destroy(); in TearDownTestCase()
178 static TunInterface sTun2; member in NetdBinderTest
182 TunInterface NetdBinderTest::sTun2; member in NetdBinderTest
1423 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID2, sTun2.name()).isOk()); in TEST_F()
1425 binder::Status status = mNetd->ipfwdAddInterfaceForward(sTun.name(), sTun2.name()); in TEST_F()
1427 expectIpfwdRuleExists(sTun.name().c_str(), sTun2.name().c_str()); in TEST_F()
1429 status = mNetd->ipfwdRemoveInterfaceForward(sTun.name(), sTun2.name()); in TEST_F()
1431 expectIpfwdRuleNotExists(sTun.name().c_str(), sTun2.name().c_str()); in TEST_F()
[all …]