Fixes some compatibility issues with STLport.

This commit is contained in:
zhanyong.wan 2013-04-04 22:45:59 +00:00
parent a9a59e06dd
commit c10a35a26a

View File

@ -1523,14 +1523,14 @@ TEST(ExpectationSetTest, SizeWorks) {
TEST(ExpectationSetTest, IsEnumerable) {
ExpectationSet es;
EXPECT_THAT(es.begin(), Eq(es.end()));
EXPECT_TRUE(es.begin() == es.end());
es += Expectation();
ExpectationSet::const_iterator it = es.begin();
EXPECT_THAT(it, Ne(es.end()));
EXPECT_TRUE(it != es.end());
EXPECT_THAT(*it, Eq(Expectation()));
++it;
EXPECT_THAT(it, Eq(es.end()));
EXPECT_TRUE(it== es.end());
}
// Tests the .After() clause.