BIND 10 trac1894, updated. 498b511dccc63bc88c0fad6a9ef0821ba8ad1cf6 [1894] Add missing method

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Jan 16 08:59:35 UTC 2014


The branch, trac1894 has been updated
       via  498b511dccc63bc88c0fad6a9ef0821ba8ad1cf6 (commit)
      from  aff22ac34cd7bc2b4e1c9cde1967d995cf2ce4c4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 498b511dccc63bc88c0fad6a9ef0821ba8ad1cf6
Author: Mukund Sivaraman <muks at isc.org>
Date:   Thu Jan 16 14:28:53 2014 +0530

    [1894] Add missing method

-----------------------------------------------------------------------

Summary of changes:
 src/bin/auth/tests/query_unittest.cc |    8 ++++++++
 1 file changed, 8 insertions(+)

-----------------------------------------------------------------------
diff --git a/src/bin/auth/tests/query_unittest.cc b/src/bin/auth/tests/query_unittest.cc
index f374a87..118f75f 100644
--- a/src/bin/auth/tests/query_unittest.cc
+++ b/src/bin/auth/tests/query_unittest.cc
@@ -22,6 +22,7 @@
 #include <dns/message.h>
 #include <dns/master_loader.h>
 #include <dns/name.h>
+#include <dns/labelsequence.h>
 #include <dns/nsec3hash.h>
 #include <dns/opcode.h>
 #include <dns/rcode.h>
@@ -245,6 +246,13 @@ public:
         isc_throw(isc::Unexpected, "unexpected name for NSEC3 test: "
                   << name);
     }
+    virtual string calculate(const LabelSequence& ls) const {
+        assert(ls.isAbsolute());
+        // This is not very optimal, but it's only going to be used in
+        // tests.
+        const Name name(ls.toText());
+        return (calculate(name));
+    }
     virtual bool match(const rdata::generic::NSEC3PARAM&) const {
         return (true);
     }



More information about the bind10-changes mailing list