Commit b044a4f4 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

- renamed the test data

- added a test for a bogus wire-format intput that currently fails


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1083 e5f2f494-b856-4b98-b285-d166d9295462
parent 717ec26c
......@@ -124,12 +124,15 @@ TEST_F(Rdata_RRSIG_Test, createFromWire_RRSIG)
"ZgWZzQKeTKPOYWrnYtdZW4PnPQFeUl3orgLev7F8J6FZlDn0y/J/ThR5"
"m36Mo2/Gdxjj8lJ/IjPVkdpKyBpcnYND8KEIma5MyNCNeyO1UkfPQZGHNSQ=");
EXPECT_EQ(rrsig_txt, rdataFactoryFromFile(RRType("RRSIG"), RRClass("IN"),
"testdata/rdata_rrsig_fromWire")->toText());
"testdata/rdata_rrsig_fromWire1")->toText());
generic::RRSIG rdata_rrsig(rrsig_txt);
EXPECT_EQ(0, rdata_rrsig.compare(
*rdataFactoryFromFile(RRType("RRSIG"), RRClass("IN"),
"testdata/rdata_rrsig_fromWire")));
}
"testdata/rdata_rrsig_fromWire1")));
// RDLEN is too short
EXPECT_THROW(rdataFactoryFromFile(RRType::RRSIG(), RRClass::IN(),
"testdata/rdata_rrsig_fromWire2"),
InvalidRdataLength);
}
}
Supports Markdown
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