Lines Matching defs:usernames
191 const std::vector<std::string> usernames = {"testuser0", "testuser1"};
199 EXPECT_CALL(mock_iptables, ApplyMarkForUserTraffic(usernames[0], add))
201 EXPECT_CALL(mock_iptables, ApplyMarkForUserTraffic(usernames[1], add))
208 mock_iptables.ApplyVpnSetup(usernames, interface, add));
212 const std::vector<std::string> usernames = {"testuser0", "testuser1"};
223 ApplyMarkForUserTraffic(usernames[0], add))
227 ApplyMarkForUserTraffic(usernames[1], add))
240 ApplyMarkForUserTraffic(usernames[0], remove))
244 ApplyMarkForUserTraffic(usernames[1], remove))
252 mock_iptables.ApplyVpnSetup(usernames, interface, add));
256 const std::vector<std::string> usernames = {"testuser0", "testuser1"};
281 mock_iptables.ApplyVpnSetup(usernames, interface, add));
285 const std::vector<std::string> usernames = {"testuser0", "testuser1"};
299 ASSERT_FALSE(mock_iptables.ApplyVpnSetup(usernames, interface, add));
303 const std::vector<std::string> usernames = {"testuser0", "testuser1"};
323 ASSERT_TRUE(mock_iptables.ApplyVpnSetup(usernames, interface, remove));
327 const std::vector<std::string> usernames = {"testuser0", "testuser1"};
350 ASSERT_FALSE(mock_iptables.ApplyVpnSetup(usernames, interface, remove));