message_unittest for optimize_for = CODE_SIZE

PiperOrigin-RevId: 549374809
pull/13349/head
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent f009c80d49
commit c9e2ca28c0
  1. 4
      src/google/protobuf/message_unittest.inc

@ -731,6 +731,10 @@ TEST(MESSAGE_TEST_NAME, SupportDeepRecursionLimit) {
EXPECT_TRUE(p.ParseFromCodedStream(&input));
}
inline bool IsOptimizeForCodeSize(const Descriptor* descriptor) {
return descriptor->file()->options().optimize_for() == FileOptions::CODE_SIZE;
}
TEST(MESSAGE_TEST_NAME, Swap) {
UNITTEST::NestedTestAllTypes o;
constexpr int kDepth = 5;

Loading…
Cancel
Save