Browse Source

[1688] some more trivial cleanups: long line, comment wording, simplification.

JINMEI Tatuya 13 years ago
parent
commit
826ac1a139
1 changed files with 5 additions and 4 deletions
  1. 5 4
      src/bin/auth/tests/query_unittest.cc

+ 5 - 4
src/bin/auth/tests/query_unittest.cc

@@ -2369,7 +2369,7 @@ TEST_F(QueryTest, emptyNameWithNSEC3) {
     EXPECT_FALSE(result->isWildcard());
 }
 
-// Class to allow checking of duplication removal in messages resulting from.
+// Class to allow checking of duplication removal in messages resulting from
 // the query.  This class allows the setting of the answers, authorities and
 // additionals vector in the Query class, as well as the ability to call the
 // createResponse() method.
@@ -2440,7 +2440,7 @@ TEST_F(QueryTest, DuplicateNameRemoval) {
     loadRRsetVector();
     EXPECT_EQ(9, rrset_vector.size());
 
-    // Create an answer, authority and authority vector with some overlapping
+    // Create an answer, authority and additional vector with some overlapping
     // entries.  The following indicate which elements from rrset_vector
     // go into each section vector.  (The values have been separated to show
     // the overlap.)
@@ -2523,10 +2523,11 @@ TEST_F(QueryTest, DuplicateNameRemoval) {
             // message will only refer to the loop indexes).
             stringstream ss;
             ss << "section " << section << ", name "
-               << rrset_vector[vecindex]->getName().toText();
+               << rrset_vector[vecindex]->getName();
             SCOPED_TRACE(ss.str());
 
-            // Check RRset is in the right section and not in the wrong section.
+            // Check RRset is in the right section and not in the wrong
+            // section.
             if (sections[section] == expected_section[vecindex]) {
                 EXPECT_TRUE(message.hasRRset(sections[section],
                             rrset_vector[vecindex]));