Commit bfa3f832 authored by Scott Mann's avatar Scott Mann
Browse files

Review experimental resolver

Removed some unused debug code and cleaned up some white space.
parent d3730100
......@@ -85,7 +85,11 @@ TEST_F(ResolverTest, AXFRFail) {
RRType::AXFR());
createRequestPacket(request_message, IPPROTO_TCP);
// AXFR is not implemented and should always send NOTIMP.
server.processMessage(*io_message, parse_message, response_message, response_obuffer, &dnsserv);
server.processMessage(*io_message,
parse_message,
response_message,
response_obuffer,
&dnsserv);
EXPECT_TRUE(dnsserv.hasAnswer());
headerCheck(*parse_message, default_qid, Rcode::NOTIMP(), opcode.getCode(),
QR_FLAG, 1, 0, 0, 0);
......@@ -100,7 +104,11 @@ TEST_F(ResolverTest, notifyFail) {
request_message.setQid(default_qid);
request_message.setHeaderFlag(Message::HEADERFLAG_AA);
createRequestPacket(request_message, IPPROTO_UDP);
server.processMessage(*io_message, parse_message, response_message, response_obuffer, &dnsserv);
server.processMessage(*io_message,
parse_message,
response_message,
response_obuffer,
&dnsserv);
EXPECT_TRUE(dnsserv.hasAnswer());
headerCheck(*parse_message, default_qid, Rcode::NOTAUTH(),
Opcode::NOTIFY().getCode(), QR_FLAG, 0, 0, 0, 0);
......
......@@ -58,8 +58,6 @@ namespace {
message_(message), section_(sect)
{}
void operator()(const RRsetPtr rrset) {
//dlog("Adding RRSet to message section " +
// boost::lexical_cast<string>(section_));
message_->addRRset(section_, rrset, true);
}
MessagePtr message_;
......
......@@ -463,7 +463,8 @@ protected:
inline void asyncLookup() {
if (lookup_) {
(*lookup_)(*io_message_, message_, answer_message_, respbuf_, this);
(*lookup_)(*io_message_, message_, answer_message_,
respbuf_, this);
}
}
......
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