diff options
author | JINMEI Tatuya <jinmei@isc.org> | 2012-02-24 06:50:12 +0100 |
---|---|---|
committer | JINMEI Tatuya <jinmei@isc.org> | 2012-02-24 06:50:12 +0100 |
commit | fb9060e5dccc2bd43ede4da3e0fe0733aa9cc6fa (patch) | |
tree | 202965a609e88bae3e7f8a7297c332095f48d443 /src/lib/dns/tests/rrset_unittest.cc | |
parent | [1392] cleanup: removed a "short term" workaround in python/isc/log/Makefile.am (diff) | |
download | kea-fb9060e5dccc2bd43ede4da3e0fe0733aa9cc6fa.tar.xz kea-fb9060e5dccc2bd43ede4da3e0fe0733aa9cc6fa.zip |
[1697] 1st update: make MessageRenderer constructors parameter-free.
AbstractMessageRenderer now creates and holds its own buffer internally.
adjusted unittests and the python wrapper in a straightforward manner.
Diffstat (limited to 'src/lib/dns/tests/rrset_unittest.cc')
-rw-r--r-- | src/lib/dns/tests/rrset_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/dns/tests/rrset_unittest.cc b/src/lib/dns/tests/rrset_unittest.cc index f9513411c7..a6bfe5695b 100644 --- a/src/lib/dns/tests/rrset_unittest.cc +++ b/src/lib/dns/tests/rrset_unittest.cc @@ -38,7 +38,7 @@ using namespace isc::dns::rdata; namespace { class RRsetTest : public ::testing::Test { protected: - RRsetTest() : buffer(0), renderer(buffer), + RRsetTest() : buffer(0), test_name("test.example.com"), test_domain("example.com"), test_nsname("ns.example.com"), @@ -201,8 +201,8 @@ TEST_F(RRsetTest, toWireRenderer) { rrset_ns.toWire(renderer); UnitTestUtil::readWireData("rrset_toWire2", wiredata); - EXPECT_PRED_FORMAT4(UnitTestUtil::matchWireData, buffer.getData(), - buffer.getLength(), &wiredata[0], wiredata.size()); + EXPECT_PRED_FORMAT4(UnitTestUtil::matchWireData, renderer.getData(), + renderer.getLength(), &wiredata[0], wiredata.size()); // toWire() cannot be performed for an empty RRset. renderer.clear(); |