Lines Matching refs:target
52 int IptablesBaseTest::fakeExecIptables(IptablesTarget target, ...) { in fakeExecIptables() argument
55 va_start(args, target); in fakeExecIptables()
65 if (target == V4 || target == V4V6) { in fakeExecIptables()
68 if (target == V6 || target == V4V6) { in fakeExecIptables()
85 int IptablesBaseTest::fakeExecIptablesRestore(IptablesTarget target, const std::string& commands) { in fakeExecIptablesRestore() argument
86 sRestoreCmds.push_back({ target, commands }); in fakeExecIptablesRestore()
90 int IptablesBaseTest::expectIptablesCommand(IptablesTarget target, int pos, in expectIptablesCommand() argument
99 if (target == V4 || target == V4V6) { in expectIptablesCommand()
102 if (target == V6 || target == V4V6) { in expectIptablesCommand()
106 return target == V4V6 ? 2 : 1; in expectIptablesCommand()
120 auto target = expectedCmds[i].first; in expectIptablesCommands() local
122 int numConsumed = expectIptablesCommand(target, pos, cmd); in expectIptablesCommands()