From 7c806e817c955e8461da98cc94438f2b42128a9a Mon Sep 17 00:00:00 2001 From: Mike Kruskal Date: Thu, 5 Dec 2024 16:59:27 -0800 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 703297798 --- src/google/protobuf/descriptor_unittest.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/google/protobuf/descriptor_unittest.cc b/src/google/protobuf/descriptor_unittest.cc index cdfc4c39175e..f96c642a6da4 100644 --- a/src/google/protobuf/descriptor_unittest.cc +++ b/src/google/protobuf/descriptor_unittest.cc @@ -2996,8 +2996,7 @@ TEST_F(MiscTest, FieldOptions) { // "bar" had options set. EXPECT_NE(&FieldOptions::default_instance(), options); - EXPECT_TRUE(bar->options().has_ctype()); - EXPECT_EQ(FieldOptions::CORD, bar->options().ctype()); + EXPECT_EQ(bar->cpp_string_type(), FieldDescriptor::CppStringType::kCord); } // =================================================================== @@ -3637,7 +3636,7 @@ TEST(CustomOptions, OptionLocations) { // See that the regular options went through unscathed. EXPECT_TRUE(message->options().has_message_set_wire_format()); - EXPECT_EQ(FieldOptions::CORD, field->options().ctype()); + EXPECT_EQ(field->cpp_string_type(), FieldDescriptor::CppStringType::kCord); } TEST(CustomOptions, OptionTypes) {