Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
0c995c93
Commit
0c995c93
authored
Dec 05, 2012
by
liujisi@google.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove undeeded no-rtti guards.
parent
2bee6e66
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
cpp_unittest.cc
src/google/protobuf/compiler/cpp/cpp_unittest.cc
+2
-6
No files found.
src/google/protobuf/compiler/cpp/cpp_unittest.cc
View file @
0c995c93
...
...
@@ -381,9 +381,6 @@ TEST(GeneratedMessageTest, StringCharStarLength) {
EXPECT_EQ
(
"wx"
,
message
.
repeated_string
(
0
));
}
#if !defined(PROTOBUF_TEST_NO_DESCRIPTORS) || \
!defined(GOOGLE_PROTOBUF_NO_RTTI)
TEST
(
GeneratedMessageTest
,
CopyFrom
)
{
unittest
::
TestAllTypes
message1
,
message2
;
...
...
@@ -395,7 +392,6 @@ TEST(GeneratedMessageTest, CopyFrom) {
message2
.
CopyFrom
(
message2
);
TestUtil
::
ExpectAllFieldsSet
(
message2
);
}
#endif
TEST
(
GeneratedMessageTest
,
SwapWithEmpty
)
{
unittest
::
TestAllTypes
message1
,
message2
;
...
...
@@ -535,8 +531,6 @@ TEST(GeneratedMessageTest, DynamicMessageCopyFrom) {
#endif // !PROTOBUF_TEST_NO_DESCRIPTORS
#if !defined(PROTOBUF_TEST_NO_DESCRIPTORS) || \
!defined(GOOGLE_PROTOBUF_NO_RTTI)
TEST
(
GeneratedMessageTest
,
NonEmptyMergeFrom
)
{
// Test merging with a non-empty message. Code is a modified form
// of that found in google/protobuf/reflection_ops_unittest.cc.
...
...
@@ -563,6 +557,8 @@ TEST(GeneratedMessageTest, NonEmptyMergeFrom) {
TestUtil
::
ExpectAllFieldsSet
(
message1
);
}
#if !defined(PROTOBUF_TEST_NO_DESCRIPTORS) || \
!defined(GOOGLE_PROTOBUF_NO_RTTI)
#ifdef PROTOBUF_HAS_DEATH_TEST
TEST
(
GeneratedMessageTest
,
MergeFromSelf
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment