Lines Matching refs:interfaceCfg
2720 const InterfaceConfigurationParcel& interfaceCfg) { in expectCurrentInterfaceConfigurationEquals() argument
2721 EXPECT_EQ(getInterfaceIPv4Addr(ifName), interfaceCfg.ipv4Addr); in expectCurrentInterfaceConfigurationEquals()
2722 EXPECT_EQ(getInterfaceIPv4Prefix(ifName), interfaceCfg.prefixLength); in expectCurrentInterfaceConfigurationEquals()
2723 EXPECT_EQ(getInterfaceHwAddr(ifName), interfaceCfg.hwAddr); in expectCurrentInterfaceConfigurationEquals()
2724 EXPECT_EQ(getInterfaceFlags(ifName), interfaceCfg.flags); in expectCurrentInterfaceConfigurationEquals()
2771 void expectTunFlags(const InterfaceConfigurationParcel& interfaceCfg) { in expectTunFlags() argument
2776 EXPECT_TRUE(std::find(interfaceCfg.flags.begin(), interfaceCfg.flags.end(), flag) != in expectTunFlags()
2777 interfaceCfg.flags.end()); in expectTunFlags()
2781 EXPECT_TRUE(std::find(interfaceCfg.flags.begin(), interfaceCfg.flags.end(), flag) == in expectTunFlags()
2782 interfaceCfg.flags.end()); in expectTunFlags()
2823 auto interfaceCfg = makeInterfaceCfgParcel(sTun.name(), testAddr, testPrefixLength, downFlags); in TEST_F() local
2824 binder::Status status = mNetd->interfaceSetCfg(interfaceCfg); in TEST_F()
2826 expectCurrentInterfaceConfigurationAlmostEqual(interfaceCfg); in TEST_F()
2829 interfaceCfg = makeInterfaceCfgParcel(sTun.name(), testAddr, testPrefixLength, upFlags); in TEST_F()
2830 status = mNetd->interfaceSetCfg(interfaceCfg); in TEST_F()
2860 auto interfaceCfg = makeInterfaceCfgParcel(sTun.name(), testAddr, testPrefixLength, noFlags); in TEST_F() local
2861 binder::Status status = mNetd->interfaceSetCfg(interfaceCfg); in TEST_F()
2863 expectCurrentInterfaceConfigurationAlmostEqual(interfaceCfg); in TEST_F()