From: Razvan Becheriu Date: Mon, 4 May 2026 07:34:31 +0000 (+0300) Subject: [#4453] formatting X-Git-Tag: Kea-3.1.9~140 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da3921308bf8075e52ca2cb6229d6b7eb02aac9c;p=thirdparty%2Fkea.git [#4453] formatting --- diff --git a/src/bin/dhcp6/tests/classify_unittest.cc b/src/bin/dhcp6/tests/classify_unittest.cc index e898d6184c..36aa4b9ad2 100644 --- a/src/bin/dhcp6/tests/classify_unittest.cc +++ b/src/bin/dhcp6/tests/classify_unittest.cc @@ -549,7 +549,9 @@ public: // 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, " @@ -602,7 +604,9 @@ TEST_F(ClassifyTest, matchClassification) { 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, " @@ -730,7 +734,9 @@ TEST_F(ClassifyTest, additional) { 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, " @@ -841,7 +847,9 @@ TEST_F(ClassifyTest, additionalClassification) { 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, " @@ -958,7 +966,9 @@ TEST_F(ClassifyTest, subnetClassPriority) { // 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, " @@ -1033,7 +1043,9 @@ TEST_F(ClassifyTest, subnetGlobalPriority) { // 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, " @@ -1099,7 +1111,9 @@ TEST_F(ClassifyTest, classGlobalPriority) { // 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, " @@ -1176,7 +1190,9 @@ TEST_F(ClassifyTest, classGlobalPersistency) { // 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, " @@ -1246,7 +1262,9 @@ TEST_F(ClassifyTest, classNeverSend) { // 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, " @@ -1316,7 +1334,9 @@ TEST_F(ClassifyTest, clientClassifySubnet) { // 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," @@ -1368,7 +1388,9 @@ TEST_F(ClassifyTest, clientClassifyPool) { // 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," @@ -1464,7 +1486,9 @@ TEST_F(ClassifyTest, clientClassifyPoolKnown) { 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," @@ -1587,7 +1611,9 @@ TEST_F(ClassifyTest, relayOverrideAndClientClass) { // 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," @@ -1727,7 +1753,9 @@ TEST_F(ClassifyTest, member) { 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, "