@@ -586,10 +586,12 @@ TEST_F(RunfilesTest, PathsFromEnvVars) {
586
586
587
587
TEST_F (RunfilesTest, ManifestBasedRlocationWithRepoMapping_fromMain) {
588
588
string uid = LINE_AS_STRING ();
589
- unique_ptr<MockFile> rm (MockFile::Create (
590
- " foo" + uid + " .repo_mapping" ,
591
- {" ,my_module,_main" , " ,my_protobuf,protobuf~3.19.2" ,
592
- " ,my_workspace,_main" , " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
589
+ unique_ptr<MockFile> rm (
590
+ MockFile::Create (" foo" + uid + " .repo_mapping" ,
591
+ {" ,config.json,config.json~1.2.3" , " ,my_module,_main" ,
592
+ " ,my_protobuf,protobuf~3.19.2" , " ,my_workspace,_main" ,
593
+ " protobuf~3.19.2,config.json,config.json~1.2.3" ,
594
+ " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
593
595
ASSERT_TRUE (rm != nullptr );
594
596
unique_ptr<MockFile> mf (MockFile::Create (
595
597
" foo" + uid + " .runfiles_manifest" ,
@@ -644,10 +646,12 @@ TEST_F(RunfilesTest, ManifestBasedRlocationWithRepoMapping_fromMain) {
644
646
645
647
TEST_F (RunfilesTest, ManifestBasedRlocationWithRepoMapping_fromOtherRepo) {
646
648
string uid = LINE_AS_STRING ();
647
- unique_ptr<MockFile> rm (MockFile::Create (
648
- " foo" + uid + " .repo_mapping" ,
649
- {" ,my_module,_main" , " ,my_protobuf,protobuf~3.19.2" ,
650
- " ,my_workspace,_main" , " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
649
+ unique_ptr<MockFile> rm (
650
+ MockFile::Create (" foo" + uid + " .repo_mapping" ,
651
+ {" ,config.json,config.json~1.2.3" , " ,my_module,_main" ,
652
+ " ,my_protobuf,protobuf~3.19.2" , " ,my_workspace,_main" ,
653
+ " protobuf~3.19.2,config.json,config.json~1.2.3" ,
654
+ " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
651
655
ASSERT_TRUE (rm != nullptr );
652
656
unique_ptr<MockFile> mf (MockFile::Create (
653
657
" foo" + uid + " .runfiles_manifest" ,
@@ -699,10 +703,12 @@ TEST_F(RunfilesTest, ManifestBasedRlocationWithRepoMapping_fromOtherRepo) {
699
703
700
704
TEST_F (RunfilesTest, DirectoryBasedRlocationWithRepoMapping_fromMain) {
701
705
string uid = LINE_AS_STRING ();
702
- unique_ptr<MockFile> rm (MockFile::Create (
703
- " foo" + uid + " .runfiles/_repo_mapping" ,
704
- {" ,my_module,_main" , " ,my_protobuf,protobuf~3.19.2" ,
705
- " ,my_workspace,_main" , " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
706
+ unique_ptr<MockFile> rm (
707
+ MockFile::Create (" foo" + uid + " .runfiles/_repo_mapping" ,
708
+ {" ,config.json,config.json~1.2.3" , " ,my_module,_main" ,
709
+ " ,my_protobuf,protobuf~3.19.2" , " ,my_workspace,_main" ,
710
+ " protobuf~3.19.2,config.json,config.json~1.2.3" ,
711
+ " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
706
712
ASSERT_TRUE (rm != nullptr );
707
713
string dir = rm->DirName ();
708
714
string argv0 (dir.substr (0 , dir.size () - string (" .runfiles" ).size ()));
@@ -746,10 +752,12 @@ TEST_F(RunfilesTest, DirectoryBasedRlocationWithRepoMapping_fromMain) {
746
752
747
753
TEST_F (RunfilesTest, DirectoryBasedRlocationWithRepoMapping_fromOtherRepo) {
748
754
string uid = LINE_AS_STRING ();
749
- unique_ptr<MockFile> rm (MockFile::Create (
750
- " foo" + uid + " .runfiles/_repo_mapping" ,
751
- {" ,my_module,_main" , " ,my_protobuf,protobuf~3.19.2" ,
752
- " ,my_workspace,_main" , " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
755
+ unique_ptr<MockFile> rm (
756
+ MockFile::Create (" foo" + uid + " .runfiles/_repo_mapping" ,
757
+ {" ,config.json,config.json~1.2.3" , " ,my_module,_main" ,
758
+ " ,my_protobuf,protobuf~3.19.2" , " ,my_workspace,_main" ,
759
+ " protobuf~3.19.2,config.json,config.json~1.2.3" ,
760
+ " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
753
761
ASSERT_TRUE (rm != nullptr );
754
762
string dir = rm->DirName ();
755
763
string argv0 (dir.substr (0 , dir.size () - string (" .runfiles" ).size ()));
@@ -790,10 +798,12 @@ TEST_F(RunfilesTest, DirectoryBasedRlocationWithRepoMapping_fromOtherRepo) {
790
798
TEST_F (RunfilesTest,
791
799
DirectoryBasedRlocationWithRepoMapping_fromOtherRepo_withSourceRepo) {
792
800
string uid = LINE_AS_STRING ();
793
- unique_ptr<MockFile> rm (MockFile::Create (
794
- " foo" + uid + " .runfiles/_repo_mapping" ,
795
- {" ,my_module,_main" , " ,my_protobuf,protobuf~3.19.2" ,
796
- " ,my_workspace,_main" , " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
801
+ unique_ptr<MockFile> rm (
802
+ MockFile::Create (" foo" + uid + " .runfiles/_repo_mapping" ,
803
+ {" ,config.json,config.json~1.2.3" , " ,my_module,_main" ,
804
+ " ,my_protobuf,protobuf~3.19.2" , " ,my_workspace,_main" ,
805
+ " protobuf~3.19.2,config.json,config.json~1.2.3" ,
806
+ " protobuf~3.19.2,protobuf,protobuf~3.19.2" }));
797
807
ASSERT_TRUE (rm != nullptr );
798
808
string dir = rm->DirName ();
799
809
string argv0 (dir.substr (0 , dir.size () - string (" .runfiles" ).size ()));
0 commit comments