summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcp/tests/option_unittest.cc
diff options
context:
space:
mode:
authorTomek Mrugalski <tomasz@isc.org>2011-11-04 12:39:15 +0100
committerTomek Mrugalski <tomasz@isc.org>2011-11-04 12:39:15 +0100
commit5d6c71aeb2575883488b2cde87501aa84260b1ab (patch)
treed22244a3d47e321a27bc93701143dbc216ad1cfb /src/lib/dhcp/tests/option_unittest.cc
parentFix for pkt4 unittest, introduced in 1226. (diff)
downloadkea-5d6c71aeb2575883488b2cde87501aa84260b1ab.tar.xz
kea-5d6c71aeb2575883488b2cde87501aa84260b1ab.zip
[1228] Changes after review.
- check() method added in Option class. Constructors are now simpler. - compilation fix in option_unittest.cc
Diffstat (limited to 'src/lib/dhcp/tests/option_unittest.cc')
-rw-r--r--src/lib/dhcp/tests/option_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dhcp/tests/option_unittest.cc b/src/lib/dhcp/tests/option_unittest.cc
index 1e28c7c2bb..db3ee3bc33 100644
--- a/src/lib/dhcp/tests/option_unittest.cc
+++ b/src/lib/dhcp/tests/option_unittest.cc
@@ -87,7 +87,7 @@ TEST_F(OptionTest, v4_data1) {
EXPECT_EQ(123, opt->getType());
vector<uint8_t> optData = opt->getData();
ASSERT_EQ(optData.size(), data.size());
- EXPECT_EQ(optData, data);
+ EXPECT_TRUE(optData == data);
EXPECT_EQ(2, opt->getHeaderLen());
EXPECT_EQ(6, opt->len());
@@ -147,7 +147,7 @@ TEST_F(OptionTest, v4_data2) {
EXPECT_EQ(123, opt->getType());
vector<uint8_t> optData = opt->getData();
ASSERT_EQ(optData.size(), expData.size());
- EXPECT_EQ(optData, expData);
+ EXPECT_TRUE(optData == expData);
EXPECT_EQ(2, opt->getHeaderLen());
EXPECT_EQ(6, opt->len());