Merge pull request #2818 from inazarenko:master

PiperOrigin-RevId: 308650221
This commit is contained in:
Gennadiy Rozental
2020-05-01 17:12:01 -04:00
2 changed files with 17 additions and 2 deletions

View File

@@ -7115,6 +7115,10 @@ TEST(IsAProtocolMessageTest, ValueIsTrueWhenTypeIsAProtocolMessage) {
EXPECT_TRUE(IsAProtocolMessage<::proto2::MessageLite>::value);
}
TEST(IsAProtocolMessageTest, ValueIsTrueWhenTypeIsAnOpenSourceProtocolMessage) {
EXPECT_TRUE(IsAProtocolMessage<::google::protobuf::MessageLite>::value);
}
// Tests that IsAProtocolMessage<T>::value is false when T is neither
// ::proto2::Message nor a sub-class of it.
TEST(IsAProtocolMessageTest, ValueIsFalseWhenTypeIsNotAProtocolMessage) {