Commit 0b8a3ffb authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2107] overall documentation update, and adjusted some interfaces

parent 43dd02a2
......@@ -64,7 +64,7 @@ protected:
NSEC3Data::destroy(mem_sgmt_, nsec3_data_, RRClass::IN());
if (zone_data_ != NULL) {
ZoneData::destroy(mem_sgmt_, RRClass::IN(), zone_data_);
ZoneData::destroy(mem_sgmt_, zone_data_, RRClass::IN());
// detect any memory leak in the test memory segment
......@@ -89,7 +89,7 @@ checkNSEC3Data(MemorySegmentTest& mem_sgmt, const RdataType& expect_rdata) {
NSEC3Data* nsec3_data = NSEC3Data::create(mem_sgmt, expect_rdata);
// Internal tree should be created and empty.
EXPECT_EQ(0, nsec3_data->getNSEC3Tree()->getNodeCount());
EXPECT_EQ(0, nsec3_data->getNSEC3Tree().getNodeCount());
EXPECT_EQ(expect_rdata.getHashalg(), nsec3_data->hashalg);
EXPECT_EQ(expect_rdata.getFlags(), nsec3_data->flags);
......@@ -105,11 +105,11 @@ checkNSEC3Data(MemorySegmentTest& mem_sgmt, const RdataType& expect_rdata) {
checkFindRdataSet(const ZoneTree* tree, const Name& name, RRType type,
checkFindRdataSet(const ZoneTree& tree, const Name& name, RRType type,
const RdataSet* expected_set)
ZoneNode* node = NULL;
tree->find(name, &node);
tree.find(name, &node);
ASSERT_NE(static_cast<ZoneNode*>(NULL), node);
EXPECT_EQ(expected_set, findRdataSetOfType(node->getData(), type));
......@@ -139,8 +139,8 @@ ZoneData::create(util::MemorySegment& mem_sgmt, const Name& zone_origin) {
ZoneData::destroy(util::MemorySegment& mem_sgmt, RRClass zone_class,
ZoneData* zone_data)
ZoneData::destroy(util::MemorySegment& mem_sgmt, ZoneData* zone_data,
RRClass zone_class)
ZoneTree::destroy(mem_sgmt, zone_data->zone_tree_.get(),
boost::bind(rdataSetDeleter, zone_class, &mem_sgmt,
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment