Commit 0c995c93 authored by liujisi@google.com's avatar liujisi@google.com

Remove undeeded no-rtti guards.

parent 2bee6e66
...@@ -381,9 +381,6 @@ TEST(GeneratedMessageTest, StringCharStarLength) { ...@@ -381,9 +381,6 @@ TEST(GeneratedMessageTest, StringCharStarLength) {
EXPECT_EQ("wx", message.repeated_string(0)); EXPECT_EQ("wx", message.repeated_string(0));
} }
#if !defined(PROTOBUF_TEST_NO_DESCRIPTORS) || \
!defined(GOOGLE_PROTOBUF_NO_RTTI)
TEST(GeneratedMessageTest, CopyFrom) { TEST(GeneratedMessageTest, CopyFrom) {
unittest::TestAllTypes message1, message2; unittest::TestAllTypes message1, message2;
...@@ -395,7 +392,6 @@ TEST(GeneratedMessageTest, CopyFrom) { ...@@ -395,7 +392,6 @@ TEST(GeneratedMessageTest, CopyFrom) {
message2.CopyFrom(message2); message2.CopyFrom(message2);
TestUtil::ExpectAllFieldsSet(message2); TestUtil::ExpectAllFieldsSet(message2);
} }
#endif
TEST(GeneratedMessageTest, SwapWithEmpty) { TEST(GeneratedMessageTest, SwapWithEmpty) {
unittest::TestAllTypes message1, message2; unittest::TestAllTypes message1, message2;
...@@ -535,8 +531,6 @@ TEST(GeneratedMessageTest, DynamicMessageCopyFrom) { ...@@ -535,8 +531,6 @@ TEST(GeneratedMessageTest, DynamicMessageCopyFrom) {
#endif // !PROTOBUF_TEST_NO_DESCRIPTORS #endif // !PROTOBUF_TEST_NO_DESCRIPTORS
#if !defined(PROTOBUF_TEST_NO_DESCRIPTORS) || \
!defined(GOOGLE_PROTOBUF_NO_RTTI)
TEST(GeneratedMessageTest, NonEmptyMergeFrom) { TEST(GeneratedMessageTest, NonEmptyMergeFrom) {
// Test merging with a non-empty message. Code is a modified form // Test merging with a non-empty message. Code is a modified form
// of that found in google/protobuf/reflection_ops_unittest.cc. // of that found in google/protobuf/reflection_ops_unittest.cc.
...@@ -563,6 +557,8 @@ TEST(GeneratedMessageTest, NonEmptyMergeFrom) { ...@@ -563,6 +557,8 @@ TEST(GeneratedMessageTest, NonEmptyMergeFrom) {
TestUtil::ExpectAllFieldsSet(message1); TestUtil::ExpectAllFieldsSet(message1);
} }
#if !defined(PROTOBUF_TEST_NO_DESCRIPTORS) || \
!defined(GOOGLE_PROTOBUF_NO_RTTI)
#ifdef PROTOBUF_HAS_DEATH_TEST #ifdef PROTOBUF_HAS_DEATH_TEST
TEST(GeneratedMessageTest, MergeFromSelf) { TEST(GeneratedMessageTest, MergeFromSelf) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment