]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#889,!591] use defines instead of hardcoded values
authorRazvan Becheriu <razvan@isc.org>
Wed, 13 Nov 2019 07:33:50 +0000 (09:33 +0200)
committerRazvan Becheriu <razvan@isc.org>
Wed, 13 Nov 2019 07:33:50 +0000 (09:33 +0200)
src/lib/dhcp/tests/libdhcp++_unittest.cc

index 83598af6d9432e297d192ec6416a0478b4db685b..0772e7192eefe73cb9db3ba533c18717dc254c01 100644 (file)
@@ -1856,9 +1856,9 @@ TEST_F(LibDhcpTest, stdOptionDefs6) {
 
     // RFC7598 options
     LibDhcpTest::testOptionDefs6(MAPE_V6_OPTION_SPACE, D6O_S46_RULE, begin, end,
-                                 typeid(OptionCustom), "s46-rule-options");
+                                 typeid(OptionCustom), V4V6_RULE_OPTION_SPACE);
     LibDhcpTest::testOptionDefs6(MAPT_V6_OPTION_SPACE, D6O_S46_RULE, begin, end,
-                                 typeid(OptionCustom), "s46-rule-options");
+                                 typeid(OptionCustom), V4V6_RULE_OPTION_SPACE);
     LibDhcpTest::testOptionDefs6(MAPE_V6_OPTION_SPACE, D6O_S46_BR, begin, end,
                                  typeid(OptionCustom));
     LibDhcpTest::testOptionDefs6(LW_V6_OPTION_SPACE, D6O_S46_BR, begin, end,
@@ -1867,18 +1867,18 @@ TEST_F(LibDhcpTest, stdOptionDefs6) {
                                  typeid(OptionCustom));
     LibDhcpTest::testOptionDefs6(LW_V6_OPTION_SPACE, D6O_S46_V4V6BIND, begin,
                                  end, typeid(OptionCustom),
-                                 "s46-v4v6bind-options");
+                                 V4V6_BIND_OPTION_SPACE);
     LibDhcpTest::testOptionDefs6(V4V6_RULE_OPTION_SPACE, D6O_S46_PORTPARAMS,
                                  begin, end, typeid(OptionCustom), "");
     LibDhcpTest::testStdOptionDefs6(D6O_S46_CONT_MAPE, begin, end,
                                     typeid(OptionCustom),
-                                    "s46-cont-mape-options");
+                                    MAPE_V6_OPTION_SPACE);
     LibDhcpTest::testStdOptionDefs6(D6O_S46_CONT_MAPT, begin, end,
                                     typeid(OptionCustom),
-                                    "s46-cont-mapt-options");
+                                    MAPT_V6_OPTION_SPACE);
     LibDhcpTest::testStdOptionDefs6(D6O_S46_CONT_LW, begin, end,
                                     typeid(OptionCustom),
-                                    "s46-cont-lw-options");
+                                    LW_V6_OPTION_SPACE);
 
 }