@@ -582,10 +582,12 @@ TEST_F(RunfilesTest, PathsFromEnvVars) {
582
582
583
583
TEST_F (RunfilesTest, ManifestBasedRlocationWithRepoMapping_fromMain) {
584
584
string uid = LINE_AS_STRING ();
585
- unique_ptr<MockFile> rm (MockFile::Create (
586
- " foo" + uid + " .repo_mapping" ,
587
- {" ,my_module,_main" , " ,my_protobuf,protobuf~3.19.2" ,
588
- " ,my_workspace,_main" , " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
585
+ unique_ptr<MockFile> rm (
586
+ MockFile::Create (" foo" + uid + " .repo_mapping" ,
587
+ {" ,config.json,config.json~1.2.3" , " ,my_module,_main" ,
588
+ " ,my_protobuf,protobuf~3.19.2" , " ,my_workspace,_main" ,
589
+ " protobuf~3.19.2,config.json,config.json~1.2.3" ,
590
+ " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
589
591
ASSERT_TRUE (rm != nullptr );
590
592
unique_ptr<MockFile> mf (MockFile::Create (
591
593
" foo" + uid + " .runfiles_manifest" ,
@@ -638,10 +640,12 @@ TEST_F(RunfilesTest, ManifestBasedRlocationWithRepoMapping_fromMain) {
638
640
639
641
TEST_F (RunfilesTest, ManifestBasedRlocationWithRepoMapping_fromOtherRepo) {
640
642
string uid = LINE_AS_STRING ();
641
- unique_ptr<MockFile> rm (MockFile::Create (
642
- " foo" + uid + " .repo_mapping" ,
643
- {" ,my_module,_main" , " ,my_protobuf,protobuf~3.19.2" ,
644
- " ,my_workspace,_main" , " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
643
+ unique_ptr<MockFile> rm (
644
+ MockFile::Create (" foo" + uid + " .repo_mapping" ,
645
+ {" ,config.json,config.json~1.2.3" , " ,my_module,_main" ,
646
+ " ,my_protobuf,protobuf~3.19.2" , " ,my_workspace,_main" ,
647
+ " protobuf~3.19.2,config.json,config.json~1.2.3" ,
648
+ " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
645
649
ASSERT_TRUE (rm != nullptr );
646
650
unique_ptr<MockFile> mf (MockFile::Create (
647
651
" foo" + uid + " .runfiles_manifest" ,
@@ -692,10 +696,12 @@ TEST_F(RunfilesTest, ManifestBasedRlocationWithRepoMapping_fromOtherRepo) {
692
696
693
697
TEST_F (RunfilesTest, DirectoryBasedRlocationWithRepoMapping_fromMain) {
694
698
string uid = LINE_AS_STRING ();
695
- unique_ptr<MockFile> rm (MockFile::Create (
696
- " foo" + uid + " .runfiles/_repo_mapping" ,
697
- {" ,my_module,_main" , " ,my_protobuf,protobuf~3.19.2" ,
698
- " ,my_workspace,_main" , " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
699
+ unique_ptr<MockFile> rm (
700
+ MockFile::Create (" foo" + uid + " .runfiles/_repo_mapping" ,
701
+ {" ,config.json,config.json~1.2.3" , " ,my_module,_main" ,
702
+ " ,my_protobuf,protobuf~3.19.2" , " ,my_workspace,_main" ,
703
+ " protobuf~3.19.2,config.json,config.json~1.2.3" ,
704
+ " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
699
705
ASSERT_TRUE (rm != nullptr );
700
706
string dir = rm->DirName ();
701
707
string argv0 (dir.substr (0 , dir.size () - string (" .runfiles" ).size ()));
@@ -737,10 +743,12 @@ TEST_F(RunfilesTest, DirectoryBasedRlocationWithRepoMapping_fromMain) {
737
743
738
744
TEST_F (RunfilesTest, DirectoryBasedRlocationWithRepoMapping_fromOtherRepo) {
739
745
string uid = LINE_AS_STRING ();
740
- unique_ptr<MockFile> rm (MockFile::Create (
741
- " foo" + uid + " .runfiles/_repo_mapping" ,
742
- {" ,my_module,_main" , " ,my_protobuf,protobuf~3.19.2" ,
743
- " ,my_workspace,_main" , " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
746
+ unique_ptr<MockFile> rm (
747
+ MockFile::Create (" foo" + uid + " .runfiles/_repo_mapping" ,
748
+ {" ,config.json,config.json~1.2.3" , " ,my_module,_main" ,
749
+ " ,my_protobuf,protobuf~3.19.2" , " ,my_workspace,_main" ,
750
+ " protobuf~3.19.2,config.json,config.json~1.2.3" ,
751
+ " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
744
752
ASSERT_TRUE (rm != nullptr );
745
753
string dir = rm->DirName ();
746
754
string argv0 (dir.substr (0 , dir.size () - string (" .runfiles" ).size ()));
@@ -780,10 +788,12 @@ TEST_F(RunfilesTest, DirectoryBasedRlocationWithRepoMapping_fromOtherRepo) {
780
788
TEST_F (RunfilesTest,
781
789
DirectoryBasedRlocationWithRepoMapping_fromOtherRepo_withSourceRepo) {
782
790
string uid = LINE_AS_STRING ();
783
- unique_ptr<MockFile> rm (MockFile::Create (
784
- " foo" + uid + " .runfiles/_repo_mapping" ,
785
- {" ,my_module,_main" , " ,my_protobuf,protobuf~3.19.2" ,
786
- " ,my_workspace,_main" , " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
791
+ unique_ptr<MockFile> rm (
792
+ MockFile::Create (" foo" + uid + " .runfiles/_repo_mapping" ,
793
+ {" ,config.json,config.json~1.2.3" , " ,my_module,_main" ,
794
+ " ,my_protobuf,protobuf~3.19.2" , " ,my_workspace,_main" ,
795
+ " protobuf~3.19.2,config.json,config.json~1.2.3" ,
796
+ " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
787
797
ASSERT_TRUE (rm != nullptr );
788
798
string dir = rm->DirName ();
789
799
string argv0 (dir.substr (0 , dir.size () - string (" .runfiles" ).size ()));
0 commit comments