@@ -1448,7 +1448,7 @@ TEST_F(CommandLineInterfaceTest, FeaturesEditionZero) {
1448
1448
TEST_F (CommandLineInterfaceTest, FeatureExtensions) {
1449
1449
CreateTempFile (" google/protobuf/descriptor.proto" ,
1450
1450
google::protobuf::DescriptorProto::descriptor ()->file ()->DebugString ());
1451
- CreateTempFile (" features .proto" ,
1451
+ CreateTempFile (" google/protobuf/unittest_features .proto" ,
1452
1452
R"schema(
1453
1453
syntax = "proto2";
1454
1454
package pb;
@@ -1466,7 +1466,7 @@ TEST_F(CommandLineInterfaceTest, FeatureExtensions) {
1466
1466
CreateTempFile (" foo.proto" ,
1467
1467
R"schema(
1468
1468
edition = "2023";
1469
- import "features .proto";
1469
+ import "google/protobuf/unittest_features .proto";
1470
1470
message Foo {
1471
1471
int32 bar = 1;
1472
1472
int32 baz = 2 [features.(pb.test).int_feature = 5];
@@ -1539,12 +1539,12 @@ TEST_F(CommandLineInterfaceTest, FeatureTargetError) {
1539
1539
TEST_F (CommandLineInterfaceTest, FeatureExtensionError) {
1540
1540
CreateTempFile (" google/protobuf/descriptor.proto" ,
1541
1541
google::protobuf::DescriptorProto::descriptor ()->file ()->DebugString ());
1542
- CreateTempFile (" features .proto" ,
1542
+ CreateTempFile (" google/protobuf/unittest_features .proto" ,
1543
1543
pb::TestInvalidFeatures::descriptor ()->file ()->DebugString ());
1544
1544
CreateTempFile (" foo.proto" ,
1545
1545
R"schema(
1546
1546
edition = "2023";
1547
- import "features .proto";
1547
+ import "google/protobuf/unittest_features .proto";
1548
1548
message Foo {
1549
1549
int32 bar = 1;
1550
1550
int32 baz = 2 [features.(pb.test_invalid).repeated_feature = 5];
@@ -2280,12 +2280,13 @@ TEST_F(CommandLineInterfaceTest, EditionDefaultsWithMinimum) {
2280
2280
TEST_F (CommandLineInterfaceTest, EditionDefaultsWithExtension) {
2281
2281
CreateTempFile (" google/protobuf/descriptor.proto" ,
2282
2282
google::protobuf::DescriptorProto::descriptor ()->file ()->DebugString ());
2283
- CreateTempFile (" features .proto" ,
2283
+ CreateTempFile (" google/protobuf/unittest_features .proto" ,
2284
2284
pb::TestFeatures::descriptor ()->file ()->DebugString ());
2285
2285
Run (" protocol_compiler --proto_path=$tmpdir "
2286
2286
" --edition_defaults_out=$tmpdir/defaults "
2287
2287
" --edition_defaults_maximum=99999_TEST_ONLY "
2288
- " features.proto google/protobuf/descriptor.proto" );
2288
+ " google/protobuf/unittest_features.proto "
2289
+ " google/protobuf/descriptor.proto" );
2289
2290
ExpectNoErrors ();
2290
2291
2291
2292
FeatureSetDefaults defaults = ReadEditionDefaults (" defaults" );
@@ -2328,30 +2329,30 @@ TEST_F(CommandLineInterfaceTest, EditionDefaultsWithExtension) {
2328
2329
TEST_F (CommandLineInterfaceTest, EditionDefaultsDependencyManifest) {
2329
2330
CreateTempFile (" google/protobuf/descriptor.proto" ,
2330
2331
google::protobuf::DescriptorProto::descriptor ()->file ()->DebugString ());
2331
- CreateTempFile (" features .proto" ,
2332
+ CreateTempFile (" google/protobuf/unittest_features .proto" ,
2332
2333
pb::TestFeatures::descriptor ()->file ()->DebugString ());
2333
2334
2334
2335
Run (" protocol_compiler --dependency_out=$tmpdir/manifest "
2335
2336
" --edition_defaults_out=$tmpdir/defaults "
2336
- " --proto_path=$tmpdir features .proto" );
2337
+ " --proto_path=$tmpdir google/protobuf/unittest_features .proto" );
2337
2338
2338
2339
ExpectNoErrors ();
2339
2340
2340
- ExpectFileContent (
2341
- " manifest " ,
2342
- " $tmpdir/defaults: "
2343
- " $tmpdir/google/protobuf/descriptor.proto \\\n $tmpdir/features .proto" );
2341
+ ExpectFileContent (" manifest " ,
2342
+ " $tmpdir/defaults: "
2343
+ " $tmpdir/google/protobuf/descriptor.proto \\\n "
2344
+ " $tmpdir/google/protobuf/unittest_features .proto" );
2344
2345
}
2345
2346
#endif // _WIN32
2346
2347
2347
2348
TEST_F (CommandLineInterfaceTest, EditionDefaultsInvalidMissingDescriptor) {
2348
- CreateTempFile (" features .proto" , R"schema(
2349
+ CreateTempFile (" google/protobuf/unittest_features .proto" , R"schema(
2349
2350
syntax = "proto2";
2350
2351
message Foo {}
2351
2352
)schema" );
2352
2353
Run (" protocol_compiler --proto_path=$tmpdir "
2353
2354
" --edition_defaults_out=$tmpdir/defaults "
2354
- " features .proto" );
2355
+ " google/protobuf/unittest_features .proto" );
2355
2356
ExpectErrorSubstring (" Could not find FeatureSet in descriptor pool" );
2356
2357
}
2357
2358
0 commit comments