// This test checks that empty client classes is supported.
TEST_F(ClassifyTest, emptyClientClasses) {
- std::string config = "{ \"interfaces-config\": {"
+ std::string config =
+ "{"
+ "\"interfaces-config\": {"
" \"interfaces\": [ \"*\" ] }, "
"\"preferred-lifetime\": 3000,"
"\"rebind-timer\": 2000, "
IfaceMgrTestConfig test_config(true);
// The router class matches incoming packets with foo in a host-name
// option (code 1234) and sets an ipv6-forwarding option in the response.
- std::string config = "{ \"interfaces-config\": {"
+ std::string config =
+ "{"
+ "\"interfaces-config\": {"
" \"interfaces\": [ \"*\" ] }, "
"\"preferred-lifetime\": 3000,"
"\"rebind-timer\": 2000, "
IfaceMgrTestConfig test_config(true);
// The router class matches incoming packets with foo in a host-name
// option (code 1234) and sets an ipv6-forwarding option in the response.
- std::string config = "{ \"interfaces-config\": {"
+ std::string config =
+ "{"
+ "\"interfaces-config\": {"
" \"interfaces\": [ \"*\" ] }, "
"\"preferred-lifetime\": 3000,"
"\"rebind-timer\": 2000, "
IfaceMgrTestConfig test_config(true);
// The router class matches incoming packets with foo in a host-name
// option (code 1234) and sets an ipv6-forwarding option in the response.
- std::string config = "{ \"interfaces-config\": {"
+ std::string config =
+ "{"
+ "\"interfaces-config\": {"
" \"interfaces\": [ \"*\" ] }, "
"\"preferred-lifetime\": 3000,"
"\"rebind-timer\": 2000, "
// Subnet sets an ipv6-forwarding option in the response.
// The router class matches incoming packets with foo in a host-name
// option (code 1234) and sets an ipv6-forwarding option in the response.
- std::string config = "{ \"interfaces-config\": {"
+ std::string config =
+ "{"
+ "\"interfaces-config\": {"
" \"interfaces\": [ \"*\" ] }, "
"\"preferred-lifetime\": 3000,"
"\"rebind-timer\": 2000, "
// Subnet sets an ipv6-forwarding option in the response.
// The router class matches incoming packets with foo in a host-name
// option (code 1234) and sets an ipv6-forwarding option in the response.
- std::string config = "{ \"interfaces-config\": {"
+ std::string config =
+ "{"
+ "\"interfaces-config\": {"
" \"interfaces\": [ \"*\" ] }, "
"\"preferred-lifetime\": 3000,"
"\"rebind-timer\": 2000, "
// A global ipv6-forwarding option is set in the response.
// The router class matches incoming packets with foo in a host-name
// option (code 1234) and sets an ipv6-forwarding option in the response.
- std::string config = "{ \"interfaces-config\": {"
+ std::string config =
+ "{"
+ "\"interfaces-config\": {"
" \"interfaces\": [ \"*\" ] }, "
"\"preferred-lifetime\": 3000,"
"\"rebind-timer\": 2000, "
// option (code 1234) and sets an ipv6-forwarding option in the response.
// Note the persistency flag follows a "OR" semantic so to set
// it to false (or to leave the default) has no effect.
- std::string config = "{ \"interfaces-config\": {"
+ std::string config =
+ "{"
+ "\"interfaces-config\": {"
" \"interfaces\": [ \"*\" ] }, "
"\"preferred-lifetime\": 3000,"
"\"rebind-timer\": 2000, "
// option (code 1234) and sets an ipv6-forwarding option in the response.
// Note the cancellation flag follows a "OR" semantic so to set
// it to false (or to leave the default) has no effect.
- std::string config = "{ \"interfaces-config\": {"
+ std::string config =
+ "{"
+ "\"interfaces-config\": {"
" \"interfaces\": [ \"*\" ] }, "
"\"preferred-lifetime\": 3000,"
"\"rebind-timer\": 2000, "
// The second subnet does not play any role here. The client's
// IP address belongs to the first subnet, so only that first
// subnet is being tested.
- std::string config = "{ \"interfaces-config\": {"
+ std::string config =
+ "{"
+ "\"interfaces-config\": {"
" \"interfaces\": [ \"*\" ]"
"},"
"\"preferred-lifetime\": 3000,"
// The second pool does not play any role here. The client's
// IP address belongs to the first pool, so only that first
// pool is being tested.
- std::string config = "{ \"interfaces-config\": {"
+ std::string config =
+ "{"
+ "\"interfaces-config\": {"
" \"interfaces\": [ \"*\" ]"
"},"
"\"preferred-lifetime\": 3000,"
IfaceMgrTestConfig test_config(true);
// This test configures 2 pools.
// The first one requires reservation, the second does the opposite.
- std::string config = "{ \"interfaces-config\": {"
+ std::string config =
+ "{"
+ "\"interfaces-config\": {"
" \"interfaces\": [ \"*\" ]"
"},"
"\"preferred-lifetime\": 3000,"
// This test configures 2 subnets. They both are on the same link, so they
// have the same relay-ip address. Furthermore, the first subnet is
// reserved for clients that belong to class "foo".
- std::string config = "{ \"interfaces-config\": {"
+ std::string config =
+ "{"
+ "\"interfaces-config\": {"
" \"interfaces\": [ \"*\" ]"
"},"
"\"preferred-lifetime\": 3000,"
IfaceMgrTestConfig test_config(true);
// The router class matches incoming packets with foo in a host-name
// option (code 1234) and sets an ipv6-forwarding option in the response.
- std::string config = "{ \"interfaces-config\": {"
+ std::string config =
+ "{"
+ "\"interfaces-config\": {"
" \"interfaces\": [ \"*\" ] }, "
"\"preferred-lifetime\": 3000,"
"\"rebind-timer\": 2000, "