@@ -586,10 +586,12 @@ TEST_F(RunfilesTest, PathsFromEnvVars) {
586586
587587TEST_F (RunfilesTest, ManifestBasedRlocationWithRepoMapping_fromMain) {
588588 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" }));
593595 ASSERT_TRUE (rm != nullptr );
594596 unique_ptr<MockFile> mf (MockFile::Create (
595597 " foo" + uid + " .runfiles_manifest" ,
@@ -644,10 +646,12 @@ TEST_F(RunfilesTest, ManifestBasedRlocationWithRepoMapping_fromMain) {
644646
645647TEST_F (RunfilesTest, ManifestBasedRlocationWithRepoMapping_fromOtherRepo) {
646648 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" }));
651655 ASSERT_TRUE (rm != nullptr );
652656 unique_ptr<MockFile> mf (MockFile::Create (
653657 " foo" + uid + " .runfiles_manifest" ,
@@ -699,10 +703,12 @@ TEST_F(RunfilesTest, ManifestBasedRlocationWithRepoMapping_fromOtherRepo) {
699703
700704TEST_F (RunfilesTest, DirectoryBasedRlocationWithRepoMapping_fromMain) {
701705 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" }));
706712 ASSERT_TRUE (rm != nullptr );
707713 string dir = rm->DirName ();
708714 string argv0 (dir.substr (0 , dir.size () - string (" .runfiles" ).size ()));
@@ -746,10 +752,12 @@ TEST_F(RunfilesTest, DirectoryBasedRlocationWithRepoMapping_fromMain) {
746752
747753TEST_F (RunfilesTest, DirectoryBasedRlocationWithRepoMapping_fromOtherRepo) {
748754 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" }));
753761 ASSERT_TRUE (rm != nullptr );
754762 string dir = rm->DirName ();
755763 string argv0 (dir.substr (0 , dir.size () - string (" .runfiles" ).size ()));
@@ -790,10 +798,12 @@ TEST_F(RunfilesTest, DirectoryBasedRlocationWithRepoMapping_fromOtherRepo) {
790798TEST_F (RunfilesTest,
791799 DirectoryBasedRlocationWithRepoMapping_fromOtherRepo_withSourceRepo) {
792800 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" }));
797807 ASSERT_TRUE (rm != nullptr );
798808 string dir = rm->DirName ();
799809 string argv0 (dir.substr (0 , dir.size () - string (" .runfiles" ).size ()));
0 commit comments