From: JINMEI Tatuya Date: Fri, 2 Nov 2012 22:21:07 +0000 (-0700) Subject: [2371] more comment wording adjustments X-Git-Tag: trac2487_base~1^2~31^2~3^2~3^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=282cb2ff2eb38f9ad46653c55d0d2974ca1df541;p=thirdparty%2Fkea.git [2371] more comment wording adjustments --- diff --git a/src/lib/dns/tests/master_lexer_unittest.cc b/src/lib/dns/tests/master_lexer_unittest.cc index 34d9ab7899..93fead7cb7 100644 --- a/src/lib/dns/tests/master_lexer_unittest.cc +++ b/src/lib/dns/tests/master_lexer_unittest.cc @@ -62,7 +62,7 @@ TEST_F(MasterLexerTest, pushStream) { // return 1 initially. EXPECT_EQ(1, lexer.getSourceLine()); - // By closing it the stack will be empty again. + // By popping it the stack will be empty again. lexer.popSource(); checkEmptySource(lexer); } @@ -111,7 +111,7 @@ TEST_F(MasterLexerTest, nestedPush) { lexer.pushSource(TEST_DATA_SRCDIR "/masterload.txt"); EXPECT_EQ(TEST_DATA_SRCDIR "/masterload.txt", lexer.getSourceName()); - // Close works on the "topmost" (last-pushed) source + // popSource() works on the "topmost" (last-pushed) source lexer.popSource(); EXPECT_EQ(expected_stream_name, lexer.getSourceName()); @@ -119,7 +119,7 @@ TEST_F(MasterLexerTest, nestedPush) { EXPECT_TRUE(lexer.getSourceName().empty()); } -TEST_F(MasterLexerTest, invalidClose) { +TEST_F(MasterLexerTest, invalidPop) { // popSource() cannot be called if the sources stack is empty. EXPECT_THROW(lexer.popSource(), isc::InvalidOperation); }