2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[4286] Added empty mobile-ip-home-agent test

This commit is contained in:
Francis Dupont
2016-01-28 14:34:10 +01:00
parent 7581bed67f
commit 5169baa076

View File

@@ -196,6 +196,16 @@ TEST_F(Option4AddrLstTest, assembly4) {
);
}
TEST_F(Option4AddrLstTest, empty) {
scoped_ptr<Option4AddrLst> opt;
// the mobile-ip-home-agent option can be empty
EXPECT_NO_THROW(opt.reset(new Option4AddrLst(DHO_HOME_AGENT_ADDRS)));
Option4AddrLst::AddressContainer addrs = opt->getAddresses();
ASSERT_EQ(0, addrs.size());
EXPECT_NO_THROW(opt.reset());
}
TEST_F(Option4AddrLstTest, setAddress) {
scoped_ptr<Option4AddrLst> opt;