|
|
|
@ -592,7 +592,6 @@ TEST_F(RepeatedPtrFieldIteratorTest, Comparable) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Uninitialized iterator does not point to any of the RepeatedPtrField.
|
|
|
|
|
// Dereferencing an uninitialized iterator crashes the process.
|
|
|
|
|
TEST_F(RepeatedPtrFieldIteratorTest, UninitializedIterator) { |
|
|
|
|
RepeatedPtrField<string>::iterator iter; |
|
|
|
|
EXPECT_TRUE(iter != proto_array_.begin()); |
|
|
|
@ -600,9 +599,6 @@ TEST_F(RepeatedPtrFieldIteratorTest, UninitializedIterator) { |
|
|
|
|
EXPECT_TRUE(iter != proto_array_.begin() + 2); |
|
|
|
|
EXPECT_TRUE(iter != proto_array_.begin() + 3); |
|
|
|
|
EXPECT_TRUE(iter != proto_array_.end()); |
|
|
|
|
#ifdef GTEST_HAS_DEATH_TEST |
|
|
|
|
ASSERT_DEATH(GOOGLE_LOG(INFO) << *iter, ""); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TEST_F(RepeatedPtrFieldIteratorTest, STLAlgorithms_lower_bound) { |
|
|
|
|