Commit 133f25c3 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

cleanup: construct RRClasses from integer rather than strings when how to...

cleanup: construct RRClasses from integer rather than strings when how to construct them doesn't matter.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1707 e5f2f494-b856-4b98-b285-d166d9295462
parent e732d557
...@@ -194,7 +194,7 @@ TEST_F(Rdata_Unknown_Test, createRdataFromWire) ...@@ -194,7 +194,7 @@ TEST_F(Rdata_Unknown_Test, createRdataFromWire)
InputBuffer ibuffer3(wiredata_unknown, sizeof(wiredata_unknown)); InputBuffer ibuffer3(wiredata_unknown, sizeof(wiredata_unknown));
EXPECT_EQ(0, rdata_unknown.compare( EXPECT_EQ(0, rdata_unknown.compare(
*createRdata(unknown_rrtype, RRClass("CLASS65000"), *createRdata(unknown_rrtype, RRClass(65000),
ibuffer3, sizeof(wiredata_unknown)))); ibuffer3, sizeof(wiredata_unknown))));
} }
...@@ -205,7 +205,7 @@ TEST_F(Rdata_Unknown_Test, createRdataByCopy) ...@@ -205,7 +205,7 @@ TEST_F(Rdata_Unknown_Test, createRdataByCopy)
EXPECT_EQ(0, rdata_unknown.compare( EXPECT_EQ(0, rdata_unknown.compare(
*createRdata(unknown_rrtype, RRClass::CH(), rdata_unknown))); *createRdata(unknown_rrtype, RRClass::CH(), rdata_unknown)));
EXPECT_EQ(0, rdata_unknown.compare( EXPECT_EQ(0, rdata_unknown.compare(
*createRdata(unknown_rrtype, RRClass("CLASS65000"), *createRdata(unknown_rrtype, RRClass(65000),
rdata_unknown))); rdata_unknown)));
} }
......
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