Lines Matching refs:ifList
2172 bool interfaceListContains(const std::vector<std::string>& ifList, const std::string& ifName) { in interfaceListContains() argument
2173 for (const auto& iface : ifList) { in interfaceListContains()
2195 void expectTetherInterfaceExists(const std::vector<std::string>& ifList, in expectTetherInterfaceExists() argument
2197 EXPECT_TRUE(interfaceListContains(ifList, ifName)); in expectTetherInterfaceExists()
2200 void expectTetherInterfaceNotExists(const std::vector<std::string>& ifList, in expectTetherInterfaceNotExists() argument
2202 EXPECT_FALSE(interfaceListContains(ifList, ifName)); in expectTetherInterfaceNotExists()
2249 std::vector<std::string> ifList; in TEST_F() local
2250 status = mNetd->tetherInterfaceList(&ifList); in TEST_F()
2252 expectTetherInterfaceExists(ifList, sTun.name()); in TEST_F()
2258 status = mNetd->tetherInterfaceList(&ifList); in TEST_F()
2260 expectTetherInterfaceNotExists(ifList, sTun.name()); in TEST_F()
2367 std::vector<std::string> ifList; in TEST_F() local
2368 status = mNetd->tetherInterfaceList(&ifList); in TEST_F()
2370 ASSERT_EQ(1U, ifList.size()); in TEST_F()
2371 EXPECT_EQ(tun1.name(), ifList[0]); in TEST_F()