Lines Matching refs:sTun2
155 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()
2993 binder::Status status = mNetd->tetherAddForward(sTun.name(), sTun2.name()); in TEST_F()
2995 expectNatEnable(sTun.name(), sTun2.name()); in TEST_F()
2997 status = mNetd->tetherRemoveForward(sTun.name(), sTun2.name()); in TEST_F()
3141 {"ndc ipfwd add " + sTun.name() + " " + sTun2.name(), in TEST_F()
3143 {"ndc ipfwd remove " + sTun.name() + " " + sTun2.name(), in TEST_F()
3270 sTun2.destroy(); in createVpnNetworkWithUid()
3271 sTun2.init(); in createVpnNetworkWithUid()
3282 EXPECT_TRUE(mNetd->networkAddInterface(vpnNetId, sTun2.name()).isOk()); in createVpnNetworkWithUid()
3287 EXPECT_TRUE(mNetd->networkAddRoute(TEST_NETID2, sTun2.name(), "2001:db8::/32", "").isOk()); in createVpnNetworkWithUid()
3443 expectVpnFallthroughWorks(mNetd.get(), false /* bypassable */, TEST_UID1, sTun, sTun2); in TEST_F()
3450 expectVpnFallthroughWorks(mNetd.get(), true /* bypassable */, TEST_UID1, sTun, sTun2); in TEST_F()
3490 EXPECT_TRUE(mNetd->networkAddInterface(TEST_NETID2, sTun2.name()).isOk()); in TEST_F()