Lines Matching refs:error_msg

490 static bool Copy(const std::string& src, const std::string& dst, /*out*/ std::string* error_msg) {  in Copy()  argument
499 *error_msg = "Copy " + src + " => " + dst + " (src_good=" in Copy()
510 /* out */ std::string* error_msg) REQUIRES_SHARED(Locks::mutator_lock_) { in LoadDexFiles() argument
515 error_msg, in LoadDexFiles()
539 static bool Remove(const std::string& path, /*out*/ std::string* error_msg) { in Remove() argument
543 *error_msg = StringPrintf("Unable to remove(\"%s\"): %s", path.c_str(), strerror(errno)); in Remove()
550 /* out */ std::string* error_msg) in CheckAllDexFilesInDomain() argument
559 *error_msg = ss.str(); in CheckAllDexFilesInDomain()
567 *error_msg = ss.str(); in CheckAllDexFilesInDomain()
582 std::string error_msg; in TEST_F() local
585 ASSERT_TRUE(Copy(GetTestDexFileName("Main"), data_location_path, &error_msg)) << error_msg; in TEST_F()
586 ASSERT_TRUE(LoadDexFiles(data_location_path, soa, &dex_files, &class_loader, &error_msg)) in TEST_F()
587 << error_msg; in TEST_F()
592 &error_msg)) << error_msg; in TEST_F()
595 ASSERT_TRUE(Remove(data_location_path, &error_msg)) << error_msg; in TEST_F()
605 std::string error_msg; in TEST_F() local
608 ASSERT_TRUE(Copy(GetTestDexFileName("Main"), system_location_path, &error_msg)) << error_msg; in TEST_F()
609 ASSERT_TRUE(LoadDexFiles(system_location_path, soa, &dex_files, &class_loader, &error_msg)) in TEST_F()
610 << error_msg; in TEST_F()
615 &error_msg)) << error_msg; in TEST_F()
618 ASSERT_TRUE(Remove(system_location_path, &error_msg)) << error_msg; in TEST_F()
628 std::string error_msg; in TEST_F() local
631 ASSERT_TRUE(Copy(GetTestDexFileName("Main"), system_ext_location_path, &error_msg)) << error_msg; in TEST_F()
632 ASSERT_TRUE(LoadDexFiles(system_ext_location_path, soa, &dex_files, &class_loader, &error_msg)) in TEST_F()
633 << error_msg; in TEST_F()
638 &error_msg)) << error_msg; in TEST_F()
641 ASSERT_TRUE(Remove(system_ext_location_path, &error_msg)) << error_msg; in TEST_F()
652 std::string error_msg; in TEST_F() local
655 ASSERT_TRUE(Copy(GetTestDexFileName("Main"), system_framework_location_path, &error_msg)) in TEST_F()
656 << error_msg; in TEST_F()
661 &error_msg)) << error_msg; in TEST_F()
666 &error_msg)) << error_msg; in TEST_F()
669 ASSERT_TRUE(Remove(system_framework_location_path, &error_msg)) << error_msg; in TEST_F()
679 std::string error_msg; in TEST_F() local
682 ASSERT_TRUE(Copy(GetTestDexFileName("Main"), system_ext_framework_location_path, &error_msg)) in TEST_F()
683 << error_msg; in TEST_F()
688 &error_msg)) << error_msg; in TEST_F()
693 &error_msg)) << error_msg; in TEST_F()
696 ASSERT_TRUE(Remove(system_ext_framework_location_path, &error_msg)) << error_msg; in TEST_F()
706 std::string error_msg; in TEST_F() local
709 ASSERT_TRUE(Copy(GetTestDexFileName("MultiDex"), data_multi_location_path, &error_msg)) in TEST_F()
710 << error_msg; in TEST_F()
711 ASSERT_TRUE(LoadDexFiles(data_multi_location_path, soa, &dex_files, &class_loader, &error_msg)) in TEST_F()
712 << error_msg; in TEST_F()
717 &error_msg)) << error_msg; in TEST_F()
720 ASSERT_TRUE(Remove(data_multi_location_path, &error_msg)) << error_msg; in TEST_F()
731 std::string error_msg; in TEST_F() local
734 ASSERT_TRUE(Copy(GetTestDexFileName("MultiDex"), system_multi_location_path, &error_msg)) in TEST_F()
735 << error_msg; in TEST_F()
736 ASSERT_TRUE(LoadDexFiles(system_multi_location_path, soa, &dex_files, &class_loader, &error_msg)) in TEST_F()
737 << error_msg; in TEST_F()
742 &error_msg)) << error_msg; in TEST_F()
745 ASSERT_TRUE(Remove(system_multi_location_path, &error_msg)) << error_msg; in TEST_F()
756 std::string error_msg; in TEST_F() local
759 ASSERT_TRUE(Copy(GetTestDexFileName("MultiDex"), system_ext_multi_location_path, &error_msg)) in TEST_F()
760 << error_msg; in TEST_F()
761 …SERT_TRUE(LoadDexFiles(system_ext_multi_location_path, soa, &dex_files, &class_loader, &error_msg)) in TEST_F()
762 << error_msg; in TEST_F()
767 &error_msg)) << error_msg; in TEST_F()
770 ASSERT_TRUE(Remove(system_ext_multi_location_path, &error_msg)) << error_msg; in TEST_F()
781 std::string error_msg; in TEST_F() local
786 &error_msg)) << error_msg; in TEST_F()
791 &error_msg)) << error_msg; in TEST_F()
796 &error_msg)) << error_msg; in TEST_F()
799 ASSERT_TRUE(Remove(system_framework_multi_location_path, &error_msg)) << error_msg; in TEST_F()
810 std::string error_msg; in TEST_F() local
815 &error_msg)) << error_msg; in TEST_F()
820 &error_msg)) << error_msg; in TEST_F()
825 &error_msg)) << error_msg; in TEST_F()
828 ASSERT_TRUE(Remove(system_ext_framework_multi_location_path, &error_msg)) << error_msg; in TEST_F()