|
@@ -65,7 +65,6 @@ protected:
|
|
meta_source.addDataSrc(static_source);
|
|
meta_source.addDataSrc(static_source);
|
|
}
|
|
}
|
|
void QueryCommon(const RRClass& qclass);
|
|
void QueryCommon(const RRClass& qclass);
|
|
- void readAndProcessQuery(const char* datafile);
|
|
|
|
void createAndProcessQuery(const Name& qname, const RRClass& qclass,
|
|
void createAndProcessQuery(const Name& qname, const RRClass& qclass,
|
|
const RRType& qtype);
|
|
const RRType& qtype);
|
|
|
|
|
|
@@ -85,18 +84,6 @@ performQuery(DataSrc& data_source, HotCache& cache, Message& message) {
|
|
}
|
|
}
|
|
|
|
|
|
void
|
|
void
|
|
-DataSrcTest::readAndProcessQuery(const char* datafile) {
|
|
|
|
- std::vector<unsigned char> data;
|
|
|
|
- UnitTestUtil::readWireData(datafile, data);
|
|
|
|
-
|
|
|
|
- InputBuffer buffer(&data[0], data.size());
|
|
|
|
- msg.fromWire(buffer);
|
|
|
|
-
|
|
|
|
- msg.makeResponse();
|
|
|
|
- performQuery(meta_source, cache, msg);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void
|
|
|
|
DataSrcTest::createAndProcessQuery(const Name& qname, const RRClass& qclass,
|
|
DataSrcTest::createAndProcessQuery(const Name& qname, const RRClass& qclass,
|
|
const RRType& qtype)
|
|
const RRType& qtype)
|
|
{
|
|
{
|