|
@@ -104,7 +104,8 @@ TEST_F(RRsetCollectionTest, find) {
|
|
|
doFind<RRsetCollection, RRsetPtr>(collection, rrclass);
|
|
|
}
|
|
|
|
|
|
-TEST_F(RRsetCollectionTest, addAndRemove) {
|
|
|
+void
|
|
|
+doAddAndRemove(RRsetCollection& collection, const RRClass& rrclass) {
|
|
|
// foo.example.org/A doesn't exist
|
|
|
RRsetPtr rrset_found = collection.find(Name("foo.example.org"), rrclass,
|
|
|
RRType::A());
|
|
@@ -134,6 +135,10 @@ TEST_F(RRsetCollectionTest, addAndRemove) {
|
|
|
EXPECT_FALSE(rrset_found);
|
|
|
}
|
|
|
|
|
|
+TEST_F(RRsetCollectionTest, addAndRemove) {
|
|
|
+ doAddAndRemove(collection, rrclass);
|
|
|
+}
|
|
|
+
|
|
|
TEST_F(RRsetCollectionTest, iteratorTest) {
|
|
|
// The collection must not be empty.
|
|
|
RRsetCollection::iterator iter = collection.begin();
|