Browse Source

[1177] Adapt the rest of the code

There are some (yet unused) virtual methods and result codes, so we need
to make sure the rest compiles. Just a thin layer for now.
Michal 'vorner' Vaner 13 years ago
parent
commit
03e9f45f8a
2 changed files with 11 additions and 0 deletions
  1. 7 0
      src/bin/auth/query.cc
  2. 4 0
      src/bin/auth/tests/query_unittest.cc

+ 7 - 0
src/bin/auth/query.cc

@@ -253,6 +253,13 @@ Query::process() const {
                 // Just empty answer with SOA in authority section
                 // Just empty answer with SOA in authority section
                 putSOA(*result.zone_finder);
                 putSOA(*result.zone_finder);
                 break;
                 break;
+            default:
+                // These are new result codes (WILDCARD and WILDCARD_NXRRSET)
+                // They should not happen from the in-memory and the database
+                // backend isn't used yet.
+                // TODO: Implement before letting the database backends in
+                isc_throw(isc::NotImplemented, "Unknown result code");
+                break;
         }
         }
     }
     }
 }
 }

+ 4 - 0
src/bin/auth/tests/query_unittest.cc

@@ -141,6 +141,10 @@ public:
     // Turn this on if you want it to return RRSIGs regardless of FIND_GLUE_OK
     // Turn this on if you want it to return RRSIGs regardless of FIND_GLUE_OK
     void setIncludeRRSIGAnyway(bool on) { include_rrsig_anyway_ = on; }
     void setIncludeRRSIGAnyway(bool on) { include_rrsig_anyway_ = on; }
 
 
+    Name findPreviousName(const Name&) const {
+        isc_throw(isc::NotImplemented, "Mock doesn't support previous name");
+    }
+
 private:
 private:
     typedef map<RRType, ConstRRsetPtr> RRsetStore;
     typedef map<RRType, ConstRRsetPtr> RRsetStore;
     typedef map<Name, RRsetStore> Domains;
     typedef map<Name, RRsetStore> Domains;