Browse Source

[2109] addressed review comments

- fix doxygen and comments
- inclusion order fix
- remove dead line from makefile
Jelte Jansen 12 years ago
parent
commit
054304b981

+ 0 - 1
src/lib/datasrc/Makefile.am

@@ -64,7 +64,6 @@ libb10_datasrc_la_LIBADD = $(top_builddir)/src/lib/exceptions/libb10-exceptions.
 libb10_datasrc_la_LIBADD += $(top_builddir)/src/lib/dns/libb10-dns++.la
 libb10_datasrc_la_LIBADD += $(top_builddir)/src/lib/log/libb10-log.la
 libb10_datasrc_la_LIBADD += $(top_builddir)/src/lib/cc/libb10-cc.la
-#libb10_datasrc_la_LIBADD += memory/libdatasrc_memory.la # convenience library
 libb10_datasrc_la_LIBADD += $(SQLITE_LIBS)
 
 BUILT_SOURCES = datasrc_config.h datasrc_messages.h datasrc_messages.cc

+ 10 - 4
src/lib/datasrc/memory/tests/zone_finder_unittest.cc

@@ -13,12 +13,19 @@
 // PERFORMANCE OF THIS SOFTWARE.
 
 #include "memory_segment_test.h"
+
+// NOTE: this faked_nsec3 inclusion (and all related code below)
+// was ported during #2109 for the convenience of implementing #2218
+// In #2218 the NSEC3 test code in this file is expected to be finalized.
+// In #2219 the original is expected to be removed, and this file should
+// probably be moved here (and any leftover code not handled in #2218 should
+// be cleaned up)
 #include "../../tests/faked_nsec3.h"
-#include <datasrc/data_source.h>
-#include <testutils/dnsmessage_test.h>
 
 #include <datasrc/memory/zone_finder.h>
 #include <datasrc/memory/rdata_serialization.h>
+#include <datasrc/data_source.h>
+#include <testutils/dnsmessage_test.h>
 
 #include <boost/foreach.hpp>
 
@@ -57,6 +64,7 @@ const char* const zzz_hash = "R53BQ7CC2UVMUBFU5OCMM6PERS9TK9EN";
 // A simple faked NSEC3 hash calculator with a dedicated creator for it.
 //
 // This is used in some NSEC3-related tests below.
+// Also see NOTE at inclusion of "../../tests/faked_nsec3.h"
 class TestNSEC3HashCreator : public NSEC3HashCreator {
     class TestNSEC3Hash : public NSEC3Hash {
     private:
@@ -685,8 +693,6 @@ TEST_F(InMemoryZoneFinderTest, glue) {
  * \brief Test searching.
  *
  * Check it finds or does not find correctly and does not throw exceptions.
- * \todo This doesn't do any kind of CNAME and so on. If it isn't
- *     directly there, it just tells it doesn't exist.
  */
 void
 InMemoryZoneFinderTest::findCheck(ZoneFinder::FindResultFlags expected_flags,

+ 1 - 1
src/lib/datasrc/memory/zone_finder.cc

@@ -44,7 +44,7 @@ namespace {
 /// \param rdataset The RdataSet to create the RRsetPtr for
 /// \param rrclass The RRClass as passed by the client
 ///
-/// Returns an empty TreeNodeRRsetPtr is either node or rdataset is NULL.
+/// Returns an empty TreeNodeRRsetPtr if node is NULL or if rdataset is NULL.
 TreeNodeRRsetPtr
 createTreeNodeRRset(const ZoneNode* node,
                     const RdataSet* rdataset,