summaryrefslogtreecommitdiffstats
path: root/src/lib/dns/tests/unittest_util.h
diff options
context:
space:
mode:
authorJelte Jansen <jelte@isc.org>2012-03-01 16:55:01 +0100
committerJelte Jansen <jelte@isc.org>2012-03-01 16:55:01 +0100
commit48b2af87d906f6280ab477950362e76f73b23482 (patch)
tree524a9f70fc5c06cbb4bbddb16abdd71144b9e9a4 /src/lib/dns/tests/unittest_util.h
parent[1612] initial test framework (diff)
downloadkea-48b2af87d906f6280ab477950362e76f73b23482.tar.xz
kea-48b2af87d906f6280ab477950362e76f73b23482.zip
[1612] finish tests and update code
catch exceptions in processMessage tests now do full proxy implementation (proxying inmemory client)
Diffstat (limited to 'src/lib/dns/tests/unittest_util.h')
-rw-r--r--src/lib/dns/tests/unittest_util.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/dns/tests/unittest_util.h b/src/lib/dns/tests/unittest_util.h
index f85a921331..ebb514d066 100644
--- a/src/lib/dns/tests/unittest_util.h
+++ b/src/lib/dns/tests/unittest_util.h
@@ -93,6 +93,22 @@ public:
const isc::dns::Name& name,
const isc::dns::RRClass& rrclass,
const isc::dns::RRType& rrtype);
+
+ ///
+ /// Populate a DNSSEC request message
+ ///
+ /// Create a request message in 'request_message' using the
+ /// opcode 'opcode' and the name/class/type query tuple specified in
+ /// 'name', 'rrclass' and 'rrtype.
+ /// EDNS will be added with DO=1 and bufsize 4096
+ static void
+ createDNSSECRequestMessage(isc::dns::Message& request_message,
+ const isc::dns::Opcode& opcode,
+ const uint16_t qid,
+ const isc::dns::Name& name,
+ const isc::dns::RRClass& rrclass,
+ const isc::dns::RRType& rrtype);
+
};
}
#endif // __UNITTEST_UTIL_H