Use StrEq for string comparison in webm_parser_unittest

Change-Id: Iaa02b7e8f318508b4de38bd258453095686c431d
This commit is contained in:
KongQun Yang 2015-10-22 17:40:11 -07:00
parent 95d2dbf68d
commit 3842a5b43c
1 changed files with 9 additions and 4 deletions

View File

@ -13,6 +13,7 @@
using ::testing::InSequence;
using ::testing::Return;
using ::testing::ReturnNull;
using ::testing::StrEq;
using ::testing::StrictMock;
using ::testing::_;
@ -393,10 +394,14 @@ TEST_F(WebMParserTest, ZeroPaddedStrings) {
InSequence s;
EXPECT_CALL(client_, OnListStart(kWebMIdEBMLHeader))
.WillOnce(Return(&client_));
EXPECT_CALL(client_, OnString(kWebMIdDocType, "")).WillOnce(Return(true));
EXPECT_CALL(client_, OnString(kWebMIdDocType, "")).WillOnce(Return(true));
EXPECT_CALL(client_, OnString(kWebMIdDocType, "a")).WillOnce(Return(true));
EXPECT_CALL(client_, OnString(kWebMIdDocType, "a")).WillOnce(Return(true));
EXPECT_CALL(client_, OnString(kWebMIdDocType, StrEq("")))
.WillOnce(Return(true));
EXPECT_CALL(client_, OnString(kWebMIdDocType, StrEq("")))
.WillOnce(Return(true));
EXPECT_CALL(client_, OnString(kWebMIdDocType, StrEq("a")))
.WillOnce(Return(true));
EXPECT_CALL(client_, OnString(kWebMIdDocType, StrEq("a")))
.WillOnce(Return(true));
EXPECT_CALL(client_, OnListEnd(kWebMIdEBMLHeader)).WillOnce(Return(true));
WebMListParser parser(kWebMIdEBMLHeader, &client_);