Use StrEq for string comparison in webm_parser_unittest
Change-Id: Iaa02b7e8f318508b4de38bd258453095686c431d
This commit is contained in:
parent
95d2dbf68d
commit
3842a5b43c
|
@ -13,6 +13,7 @@
|
||||||
using ::testing::InSequence;
|
using ::testing::InSequence;
|
||||||
using ::testing::Return;
|
using ::testing::Return;
|
||||||
using ::testing::ReturnNull;
|
using ::testing::ReturnNull;
|
||||||
|
using ::testing::StrEq;
|
||||||
using ::testing::StrictMock;
|
using ::testing::StrictMock;
|
||||||
using ::testing::_;
|
using ::testing::_;
|
||||||
|
|
||||||
|
@ -393,10 +394,14 @@ TEST_F(WebMParserTest, ZeroPaddedStrings) {
|
||||||
InSequence s;
|
InSequence s;
|
||||||
EXPECT_CALL(client_, OnListStart(kWebMIdEBMLHeader))
|
EXPECT_CALL(client_, OnListStart(kWebMIdEBMLHeader))
|
||||||
.WillOnce(Return(&client_));
|
.WillOnce(Return(&client_));
|
||||||
EXPECT_CALL(client_, OnString(kWebMIdDocType, "")).WillOnce(Return(true));
|
EXPECT_CALL(client_, OnString(kWebMIdDocType, StrEq("")))
|
||||||
EXPECT_CALL(client_, OnString(kWebMIdDocType, "")).WillOnce(Return(true));
|
.WillOnce(Return(true));
|
||||||
EXPECT_CALL(client_, OnString(kWebMIdDocType, "a")).WillOnce(Return(true));
|
EXPECT_CALL(client_, OnString(kWebMIdDocType, StrEq("")))
|
||||||
EXPECT_CALL(client_, OnString(kWebMIdDocType, "a")).WillOnce(Return(true));
|
.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));
|
EXPECT_CALL(client_, OnListEnd(kWebMIdEBMLHeader)).WillOnce(Return(true));
|
||||||
|
|
||||||
WebMListParser parser(kWebMIdEBMLHeader, &client_);
|
WebMListParser parser(kWebMIdEBMLHeader, &client_);
|
||||||
|
|
Loading…
Reference in New Issue