diff options
author | Paul Selkirk <pselkirk@isc.org> | 2013-05-21 20:45:22 +0200 |
---|---|---|
committer | Paul Selkirk <pselkirk@isc.org> | 2013-05-21 20:45:22 +0200 |
commit | 7acdd8d445081e1a4c70ed58298367a96ccb55fd (patch) | |
tree | b99c260fe948dbbe6b8e8474b1dc9bb176de778b /src/lib/dns/tests/rrparamregistry_unittest.cc | |
parent | [2522] add SSHFP::operator= (diff) | |
download | kea-7acdd8d445081e1a4c70ed58298367a96ccb55fd.tar.xz kea-7acdd8d445081e1a4c70ed58298367a96ccb55fd.zip |
[2522] remove OldRdataFactory, make AbstractRdataFactory pure virtual
Diffstat (limited to 'src/lib/dns/tests/rrparamregistry_unittest.cc')
-rw-r--r-- | src/lib/dns/tests/rrparamregistry_unittest.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/dns/tests/rrparamregistry_unittest.cc b/src/lib/dns/tests/rrparamregistry_unittest.cc index 08e0af10cb..b0d43a81d2 100644 --- a/src/lib/dns/tests/rrparamregistry_unittest.cc +++ b/src/lib/dns/tests/rrparamregistry_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2010 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2010-2013 Internet Systems Consortium, Inc. ("ISC") // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above @@ -108,13 +108,16 @@ TEST_F(RRParamRegistryTest, addError) { class TestRdataFactory : public AbstractRdataFactory { public: - using AbstractRdataFactory::create; virtual RdataPtr create(const string& rdata_str) const { return (RdataPtr(new in::A(rdata_str))); } virtual RdataPtr create(InputBuffer& buffer, size_t rdata_len) const { return (RdataPtr(new in::A(buffer, rdata_len))); } virtual RdataPtr create(const Rdata& source) const { return (RdataPtr(new in::A(dynamic_cast<const in::A&>(source)))); } + virtual RdataPtr create(MasterLexer& lexer, const Name* origin, + MasterLoader::Options options, + MasterLoaderCallbacks& callbacks) const + { return (RdataPtr(new in::A(lexer, origin, options, callbacks))); } }; TEST_F(RRParamRegistryTest, addRemoveFactory) { |