Lines Matching refs:interfaceCfg
2659 const InterfaceConfigurationParcel& interfaceCfg) { in expectCurrentInterfaceConfigurationEquals() argument
2660 EXPECT_EQ(getInterfaceIPv4Addr(ifName), interfaceCfg.ipv4Addr); in expectCurrentInterfaceConfigurationEquals()
2661 EXPECT_EQ(getInterfaceIPv4Prefix(ifName), interfaceCfg.prefixLength); in expectCurrentInterfaceConfigurationEquals()
2662 EXPECT_EQ(getInterfaceHwAddr(ifName), interfaceCfg.hwAddr); in expectCurrentInterfaceConfigurationEquals()
2663 EXPECT_EQ(getInterfaceFlags(ifName), interfaceCfg.flags); in expectCurrentInterfaceConfigurationEquals()
2710 void expectTunFlags(const InterfaceConfigurationParcel& interfaceCfg) { in expectTunFlags() argument
2715 EXPECT_TRUE(std::find(interfaceCfg.flags.begin(), interfaceCfg.flags.end(), flag) != in expectTunFlags()
2716 interfaceCfg.flags.end()); in expectTunFlags()
2720 EXPECT_TRUE(std::find(interfaceCfg.flags.begin(), interfaceCfg.flags.end(), flag) == in expectTunFlags()
2721 interfaceCfg.flags.end()); in expectTunFlags()
2766 auto interfaceCfg = makeInterfaceCfgParcel(sTun.name(), testAddr, testPrefixLength, downFlags); in TEST_F() local
2767 binder::Status status = mNetd->interfaceSetCfg(interfaceCfg); in TEST_F()
2769 expectCurrentInterfaceConfigurationAlmostEqual(interfaceCfg); in TEST_F()
2772 interfaceCfg = makeInterfaceCfgParcel(sTun.name(), testAddr, testPrefixLength, upFlags); in TEST_F()
2773 status = mNetd->interfaceSetCfg(interfaceCfg); in TEST_F()
2805 auto interfaceCfg = makeInterfaceCfgParcel(sTun.name(), testAddr, testPrefixLength, noFlags); in TEST_F() local
2806 binder::Status status = mNetd->interfaceSetCfg(interfaceCfg); in TEST_F()
2808 expectCurrentInterfaceConfigurationAlmostEqual(interfaceCfg); in TEST_F()