diff options
author | Marcin Siodelski <marcin@isc.org> | 2012-11-30 13:28:28 +0100 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2012-11-30 13:28:28 +0100 |
commit | ac111116c588c5b611e1363d4fe11c7ee8f4e495 (patch) | |
tree | b02a8ff873c79efbe62cd4835a9d6668c5d957da /src/lib/dhcp/tests/option_definition_unittest.cc | |
parent | [2491] Support for custom option to hold FQDN. (diff) | |
download | kea-ac111116c588c5b611e1363d4fe11c7ee8f4e495.tar.xz kea-ac111116c588c5b611e1363d4fe11c7ee8f4e495.zip |
[2491] Test that appropriate std options are returned.
Diffstat (limited to 'src/lib/dhcp/tests/option_definition_unittest.cc')
-rw-r--r-- | src/lib/dhcp/tests/option_definition_unittest.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/dhcp/tests/option_definition_unittest.cc b/src/lib/dhcp/tests/option_definition_unittest.cc index 20c87d6203..91b822c3cd 100644 --- a/src/lib/dhcp/tests/option_definition_unittest.cc +++ b/src/lib/dhcp/tests/option_definition_unittest.cc @@ -23,6 +23,7 @@ #include <dhcp/option6_iaaddr.h> #include <dhcp/option6_int.h> #include <dhcp/option6_int_array.h> +#include <dhcp/option_custom.h> #include <dhcp/option_definition.h> #include <exceptions/exceptions.h> @@ -883,7 +884,7 @@ TEST_F(OptionDefinitionTest, utf8StringTokenized) { option_v6 = opt_def.optionFactory(Option::V6, opt_code, values); ); ASSERT_TRUE(option_v6); - ASSERT_TRUE(typeid(*option_v6) == typeid(Option)); + ASSERT_TRUE(typeid(*option_v6) == typeid(OptionCustom)); std::vector<uint8_t> data = option_v6->getData(); std::vector<uint8_t> ref_data(values[0].c_str(), values[0].c_str() + values[0].length()); |