@@ -1808,7 +1808,7 @@ TEST_F(CommandLineInterfaceTest, EditionDefaults) {
18081808 CreateTempFile (" google/protobuf/descriptor.proto" ,
18091809 google::protobuf::DescriptorProto::descriptor ()->file ()->DebugString ());
18101810 Run (" protocol_compiler --proto_path=$tmpdir "
1811- " --experimental_edition_defaults_out =$tmpdir/defaults "
1811+ " --edition_defaults_out =$tmpdir/defaults "
18121812 " google/protobuf/descriptor.proto" );
18131813 ExpectNoErrors ();
18141814
@@ -1856,8 +1856,8 @@ TEST_F(CommandLineInterfaceTest, EditionDefaultsWithMaximum) {
18561856 CreateTempFile (" google/protobuf/descriptor.proto" ,
18571857 google::protobuf::DescriptorProto::descriptor ()->file ()->DebugString ());
18581858 Run (" protocol_compiler --proto_path=$tmpdir "
1859- " --experimental_edition_defaults_out =$tmpdir/defaults "
1860- " --experimental_edition_defaults_maximum =99997_TEST_ONLY "
1859+ " --edition_defaults_out =$tmpdir/defaults "
1860+ " --edition_defaults_maximum =99997_TEST_ONLY "
18611861 " google/protobuf/descriptor.proto" );
18621862 ExpectNoErrors ();
18631863
@@ -1905,9 +1905,9 @@ TEST_F(CommandLineInterfaceTest, EditionDefaultsWithMinimum) {
19051905 CreateTempFile (" google/protobuf/descriptor.proto" ,
19061906 google::protobuf::DescriptorProto::descriptor ()->file ()->DebugString ());
19071907 Run (" protocol_compiler --proto_path=$tmpdir "
1908- " --experimental_edition_defaults_out =$tmpdir/defaults "
1909- " --experimental_edition_defaults_minimum =99997_TEST_ONLY "
1910- " --experimental_edition_defaults_maximum =99999_TEST_ONLY "
1908+ " --edition_defaults_out =$tmpdir/defaults "
1909+ " --edition_defaults_minimum =99997_TEST_ONLY "
1910+ " --edition_defaults_maximum =99999_TEST_ONLY "
19111911 " google/protobuf/descriptor.proto" );
19121912 ExpectNoErrors ();
19131913
@@ -1957,8 +1957,8 @@ TEST_F(CommandLineInterfaceTest, EditionDefaultsWithExtension) {
19571957 CreateTempFile (" features.proto" ,
19581958 pb::TestFeatures::descriptor ()->file ()->DebugString ());
19591959 Run (" protocol_compiler --proto_path=$tmpdir "
1960- " --experimental_edition_defaults_out =$tmpdir/defaults "
1961- " --experimental_edition_defaults_maximum =99999_TEST_ONLY "
1960+ " --edition_defaults_out =$tmpdir/defaults "
1961+ " --edition_defaults_maximum =99999_TEST_ONLY "
19621962 " features.proto google/protobuf/descriptor.proto" );
19631963 ExpectNoErrors ();
19641964
@@ -1996,7 +1996,7 @@ TEST_F(CommandLineInterfaceTest, EditionDefaultsDependencyManifest) {
19961996 pb::TestFeatures::descriptor ()->file ()->DebugString ());
19971997
19981998 Run (" protocol_compiler --dependency_out=$tmpdir/manifest "
1999- " --experimental_edition_defaults_out =$tmpdir/defaults "
1999+ " --edition_defaults_out =$tmpdir/defaults "
20002000 " --proto_path=$tmpdir features.proto" );
20012001
20022002 ExpectNoErrors ();
@@ -2014,7 +2014,7 @@ TEST_F(CommandLineInterfaceTest, EditionDefaultsInvalidMissingDescriptor) {
20142014 message Foo {}
20152015 )schema" );
20162016 Run (" protocol_compiler --proto_path=$tmpdir "
2017- " --experimental_edition_defaults_out =$tmpdir/defaults "
2017+ " --edition_defaults_out =$tmpdir/defaults "
20182018 " features.proto" );
20192019 ExpectErrorSubstring (" Could not find FeatureSet in descriptor pool" );
20202020}
@@ -2023,29 +2023,27 @@ TEST_F(CommandLineInterfaceTest, EditionDefaultsInvalidTwice) {
20232023 CreateTempFile (" google/protobuf/descriptor.proto" ,
20242024 google::protobuf::DescriptorProto::descriptor ()->file ()->DebugString ());
20252025 Run (" protocol_compiler --proto_path=$tmpdir "
2026- " --experimental_edition_defaults_out =$tmpdir/defaults "
2027- " --experimental_edition_defaults_out =$tmpdir/defaults "
2026+ " --edition_defaults_out =$tmpdir/defaults "
2027+ " --edition_defaults_out =$tmpdir/defaults "
20282028 " google/protobuf/descriptor.proto" );
2029- ExpectErrorSubstring (
2030- " experimental_edition_defaults_out may only be passed once" );
2029+ ExpectErrorSubstring (" edition_defaults_out may only be passed once" );
20312030}
20322031
20332032TEST_F (CommandLineInterfaceTest, EditionDefaultsInvalidEmpty) {
20342033 CreateTempFile (" google/protobuf/descriptor.proto" ,
20352034 google::protobuf::DescriptorProto::descriptor ()->file ()->DebugString ());
20362035 Run (" protocol_compiler --proto_path=$tmpdir "
2037- " --experimental_edition_defaults_out = "
2036+ " --edition_defaults_out = "
20382037 " google/protobuf/descriptor.proto" );
2039- ExpectErrorSubstring (
2040- " experimental_edition_defaults_out requires a non-empty value" );
2038+ ExpectErrorSubstring (" edition_defaults_out requires a non-empty value" );
20412039}
20422040
20432041TEST_F (CommandLineInterfaceTest, EditionDefaultsInvalidCompile) {
20442042 CreateTempFile (" google/protobuf/descriptor.proto" ,
20452043 google::protobuf::DescriptorProto::descriptor ()->file ()->DebugString ());
20462044 Run (" protocol_compiler --proto_path=$tmpdir "
20472045 " --encode=pb.CppFeatures "
2048- " --experimental_edition_defaults_out =$tmpdir/defaults "
2046+ " --edition_defaults_out =$tmpdir/defaults "
20492047 " google/protobuf/descriptor.proto" );
20502048 ExpectErrorSubstring (" Cannot use --encode or --decode and generate defaults" );
20512049}
@@ -2054,18 +2052,17 @@ TEST_F(CommandLineInterfaceTest, EditionDefaultsInvalidMinimumTwice) {
20542052 CreateTempFile (" google/protobuf/descriptor.proto" ,
20552053 google::protobuf::DescriptorProto::descriptor ()->file ()->DebugString ());
20562054 Run (" protocol_compiler --proto_path=$tmpdir "
2057- " --experimental_edition_defaults_minimum =2023 "
2058- " --experimental_edition_defaults_minimum =2023 "
2055+ " --edition_defaults_minimum =2023 "
2056+ " --edition_defaults_minimum =2023 "
20592057 " google/protobuf/descriptor.proto" );
2060- ExpectErrorSubstring (
2061- " experimental_edition_defaults_minimum may only be passed once" );
2058+ ExpectErrorSubstring (" edition_defaults_minimum may only be passed once" );
20622059}
20632060
20642061TEST_F (CommandLineInterfaceTest, EditionDefaultsInvalidMinimumEmpty) {
20652062 CreateTempFile (" google/protobuf/descriptor.proto" ,
20662063 google::protobuf::DescriptorProto::descriptor ()->file ()->DebugString ());
20672064 Run (" protocol_compiler --proto_path=$tmpdir "
2068- " --experimental_edition_defaults_minimum = "
2065+ " --edition_defaults_minimum = "
20692066 " google/protobuf/descriptor.proto" );
20702067 ExpectErrorSubstring (" unknown edition \"\" " );
20712068}
@@ -2074,7 +2071,7 @@ TEST_F(CommandLineInterfaceTest, EditionDefaultsInvalidMinimumUnknown) {
20742071 CreateTempFile (" google/protobuf/descriptor.proto" ,
20752072 google::protobuf::DescriptorProto::descriptor ()->file ()->DebugString ());
20762073 Run (" protocol_compiler --proto_path=$tmpdir "
2077- " --experimental_edition_defaults_minimum =2022 "
2074+ " --edition_defaults_minimum =2022 "
20782075 " google/protobuf/descriptor.proto" );
20792076 ExpectErrorSubstring (" unknown edition \" 2022\" " );
20802077}
@@ -2083,18 +2080,17 @@ TEST_F(CommandLineInterfaceTest, EditionDefaultsInvalidMaximumTwice) {
20832080 CreateTempFile (" google/protobuf/descriptor.proto" ,
20842081 google::protobuf::DescriptorProto::descriptor ()->file ()->DebugString ());
20852082 Run (" protocol_compiler --proto_path=$tmpdir "
2086- " --experimental_edition_defaults_maximum =2023 "
2087- " --experimental_edition_defaults_maximum =2023 "
2083+ " --edition_defaults_maximum =2023 "
2084+ " --edition_defaults_maximum =2023 "
20882085 " google/protobuf/descriptor.proto" );
2089- ExpectErrorSubstring (
2090- " experimental_edition_defaults_maximum may only be passed once" );
2086+ ExpectErrorSubstring (" edition_defaults_maximum may only be passed once" );
20912087}
20922088
20932089TEST_F (CommandLineInterfaceTest, EditionDefaultsInvalidMaximumEmpty) {
20942090 CreateTempFile (" google/protobuf/descriptor.proto" ,
20952091 google::protobuf::DescriptorProto::descriptor ()->file ()->DebugString ());
20962092 Run (" protocol_compiler --proto_path=$tmpdir "
2097- " --experimental_edition_defaults_maximum = "
2093+ " --edition_defaults_maximum = "
20982094 " google/protobuf/descriptor.proto" );
20992095 ExpectErrorSubstring (" unknown edition \"\" " );
21002096}
@@ -2103,7 +2099,7 @@ TEST_F(CommandLineInterfaceTest, EditionDefaultsInvalidMaximumUnknown) {
21032099 CreateTempFile (" google/protobuf/descriptor.proto" ,
21042100 google::protobuf::DescriptorProto::descriptor ()->file ()->DebugString ());
21052101 Run (" protocol_compiler --proto_path=$tmpdir "
2106- " --experimental_edition_defaults_maximum =2022 "
2102+ " --edition_defaults_maximum =2022 "
21072103 " google/protobuf/descriptor.proto" );
21082104 ExpectErrorSubstring (" unknown edition \" 2022\" " );
21092105}
0 commit comments