Lines Matching refs:IsOk

46 using android::apex::testing::IsOk;
221 ASSERT_TRUE(IsOk(instance.AddPreInstalledApex({GetBuiltInDir()}))); in TEST_F()
229 ASSERT_TRUE(IsOk(instance.AddDataApex(GetDataDir()))); in TEST_F()
251 ASSERT_TRUE(IsOk(instance.AddPreInstalledApex({GetBuiltInDir()}))); in TEST_F()
257 ASSERT_TRUE(IsOk(instance.AddDataApex(GetDataDir()))); in TEST_F()
274 ASSERT_TRUE(IsOk(instance.AddPreInstalledApex({GetBuiltInDir()}))); in TEST_F()
279 ASSERT_TRUE(IsOk(instance.AddDataApex(GetDataDir()))); in TEST_F()
296 ASSERT_TRUE(IsOk(instance.AddPreInstalledApex({GetBuiltInDir()}))); in TEST_F()
301 ASSERT_TRUE(IsOk(instance.AddDataApex(GetDataDir()))); in TEST_F()
318 ASSERT_TRUE(IsOk(instance.AddPreInstalledApex({GetBuiltInDir()}))); in TEST_F()
323 ASSERT_TRUE(IsOk(instance.AddDataApex(GetDataDir()))); in TEST_F()
346 ASSERT_TRUE(IsOk(exists)); in TEST_F()
354 ASSERT_TRUE(IsOk(comparison_result)); in TEST_F()
386 ASSERT_TRUE(IsOk(result)); in TEST_F()
393 ASSERT_FALSE(IsOk(result)); in TEST_F()
404 ASSERT_FALSE(IsOk(result)); in TEST_F()
413 ASSERT_FALSE(IsOk(result)); in TEST_F()
467 ASSERT_TRUE(IsOk(exists)); in TEST_F()
475 ASSERT_TRUE(IsOk(comparison_result)); in TEST_F()
522 ASSERT_TRUE(IsOk(instance.AddPreInstalledApex({GetBuiltInDir()}))); in TEST_F()
527 ASSERT_TRUE(IsOk(result)); in TEST_F()
536 ASSERT_TRUE(IsOk(instance.AddPreInstalledApex({GetBuiltInDir()}))); in TEST_F()
542 ASSERT_TRUE(IsOk(result)); in TEST_F()
549 ASSERT_TRUE(IsOk(instance.AddDataApex(GetDataDir()))); in TEST_F()
553 ASSERT_TRUE(IsOk(result)); in TEST_F()
561 ASSERT_TRUE(IsOk(result)); in TEST_F()
570 ASSERT_TRUE(IsOk(instance.AddPreInstalledApex({GetBuiltInDir()}))); in TEST_F()
571 ASSERT_TRUE(IsOk(instance.AddDataApex(GetDataDir()))); in TEST_F()
578 ASSERT_TRUE(IsOk(result)); in TEST_F()
589 ASSERT_TRUE(IsOk(result)); in TEST_F()
599 ASSERT_TRUE(IsOk(result)); in TEST_F()
606 ASSERT_TRUE(IsOk(instance_new.AddPreInstalledApex({GetBuiltInDir()}))); in TEST_F()
610 ASSERT_TRUE(IsOk(instance_new.AddDataApex(data_dir_new.path))); in TEST_F()
616 ASSERT_TRUE(IsOk(result)); in TEST_F()
624 ASSERT_TRUE(IsOk(result)); in TEST_F()
632 ASSERT_TRUE(IsOk(result)); in TEST_F()
641 ASSERT_TRUE(IsOk(ReserveSpaceForCompressedApex(100, dest_dir.path))); in TEST_F()
643 ASSERT_TRUE(IsOk(files)); in TEST_F()
652 ASSERT_TRUE(IsOk(ReserveSpaceForCompressedApex(100, dest_dir.path))); in TEST_F()
653 ASSERT_TRUE(IsOk(ReserveSpaceForCompressedApex(100, dest_dir.path))); in TEST_F()
655 ASSERT_TRUE(IsOk(files)); in TEST_F()
664 ASSERT_TRUE(IsOk(ReserveSpaceForCompressedApex(100, dest_dir.path))); in TEST_F()
667 ASSERT_TRUE(IsOk(ReserveSpaceForCompressedApex(1000, dest_dir.path))); in TEST_F()
669 ASSERT_TRUE(IsOk(files)); in TEST_F()
673 ASSERT_TRUE(IsOk(ReserveSpaceForCompressedApex(10, dest_dir.path))); in TEST_F()
675 ASSERT_TRUE(IsOk(files)); in TEST_F()
684 ASSERT_TRUE(IsOk(ReserveSpaceForCompressedApex(100, dest_dir.path))); in TEST_F()
686 ASSERT_TRUE(IsOk(files)); in TEST_F()
690 ASSERT_TRUE(IsOk(ReserveSpaceForCompressedApex(0, dest_dir.path))); in TEST_F()
692 ASSERT_TRUE(IsOk(files)); in TEST_F()
711 ASSERT_FALSE(IsOk(ReserveSpaceForCompressedApex(-1, dest_dir.path))); in TEST_F()
716 ASSERT_TRUE(IsOk(ReserveSpaceForCompressedApex(0, dest_dir.path))); in TEST_F()
722 ASSERT_TRUE(IsOk(ReserveSpaceForCompressedApex(10, dest_dir.path))); in TEST_F()
730 ASSERT_FALSE(IsOk(ReserveSpaceForCompressedApex(-1, dest_dir.path))); in TEST_F()
745 ASSERT_TRUE(IsOk(SetUpApexTestEnvironment())); in SetUp()
767 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
771 ASSERT_FALSE(IsOk(ret)); in TEST_F()
778 ASSERT_FALSE(IsOk(ret)); in TEST_F()
788 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
793 ASSERT_FALSE(IsOk(ret)); in TEST_F()
803 ASSERT_FALSE(IsOk(ret)); in TEST_F()
813 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
818 ASSERT_FALSE(IsOk(ret)); in TEST_F()
829 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
833 ASSERT_FALSE(IsOk(ret)); in TEST_F()
841 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
846 ASSERT_FALSE(IsOk(ret)); in TEST_F()
854 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
859 ASSERT_FALSE(IsOk(ret)); in TEST_F()
867 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
872 ASSERT_FALSE(IsOk(ret)); in TEST_F()
880 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
884 ASSERT_FALSE(IsOk(ret)); in TEST_F()
892 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
897 ASSERT_FALSE(IsOk(ret)); in TEST_F()
909 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
914 ASSERT_FALSE(IsOk(ret)); in TEST_F()
926 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
931 ASSERT_FALSE(IsOk(ret)); in TEST_F()
939 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
944 ASSERT_FALSE(IsOk(ret)); in TEST_F()
952 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
957 ASSERT_TRUE(IsOk(active_apex)); in TEST_F()
962 ASSERT_TRUE(IsOk(ret)); in TEST_F()
973 ASSERT_TRUE(IsOk(manifest)); in TEST_F()
978 ASSERT_TRUE(IsOk(active_apex)); in TEST_F()
999 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
1004 ASSERT_TRUE(IsOk(active_apex)); in TEST_F()
1009 ASSERT_TRUE(IsOk(ret)); in TEST_F()
1019 ASSERT_TRUE(IsOk(active_apex)); in TEST_F()
1041 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
1046 ASSERT_TRUE(IsOk(active_apex)); in TEST_F()
1051 ASSERT_TRUE(IsOk(ret)); in TEST_F()
1062 ASSERT_TRUE(IsOk(manifest)); in TEST_F()
1067 ASSERT_TRUE(IsOk(active_apex)); in TEST_F()
1090 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
1095 ASSERT_TRUE(IsOk(active_apex)); in TEST_F()
1100 ASSERT_TRUE(IsOk(ret)); in TEST_F()
1111 ASSERT_TRUE(IsOk(manifest)); in TEST_F()
1116 ASSERT_TRUE(IsOk(active_apex)); in TEST_F()
1142 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
1147 ASSERT_TRUE(IsOk(active_apex)); in TEST_F()
1152 ASSERT_TRUE(IsOk(ret)); in TEST_F()
1163 ASSERT_TRUE(IsOk(manifest)); in TEST_F()
1168 ASSERT_TRUE(IsOk(active_apex)); in TEST_F()
1189 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
1194 ASSERT_TRUE(IsOk(active_apex)); in TEST_F()
1203 ASSERT_FALSE(IsOk(ret)); in TEST_F()
1212 ASSERT_TRUE(IsOk(active_apex)); in TEST_F()
1234 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
1239 ASSERT_TRUE(IsOk(active_apex)); in TEST_F()
1248 ASSERT_FALSE(IsOk(ret)); in TEST_F()
1257 ASSERT_TRUE(IsOk(active_apex)); in TEST_F()
1280 ASSERT_TRUE(IsOk(ActivatePackage(apex_1))); in TEST_F()
1281 ASSERT_TRUE(IsOk(ActivatePackage(apex_2))); in TEST_F()
1289 ASSERT_TRUE(IsOk(ret)); in TEST_F()
1323 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
1327 ASSERT_TRUE(IsOk(active_apex)); in TEST_F()
1335 ASSERT_TRUE(IsOk(DeactivatePackage(file_path))); in TEST_F()
1336 ASSERT_FALSE(IsOk(GetActivePackage("com.android.apex.test_package"))); in TEST_F()
1359 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
1362 ASSERT_TRUE(IsOk(active_apex)); in TEST_F()
1369 ASSERT_TRUE(IsOk(DeactivatePackage(file_path))); in TEST_F()
1370 ASSERT_FALSE(IsOk(GetActivePackage("com.android.apex.test.sharedlibs"))); in TEST_F()
1406 ASSERT_TRUE(IsOk(ActivatePackage(active_decompressed_apex))); in TEST_F()
1407 ASSERT_TRUE(IsOk(ActivatePackage(active_data_apex))); in TEST_F()
1640 ASSERT_TRUE(IsOk(apex)); in TEST_F()
2802 ASSERT_TRUE(IsOk(apex)); in TEST_F()
3336 ASSERT_TRUE(IsOk(ActivatePackage(apex_path))); in TEST_F()
3337 ASSERT_TRUE(IsOk(ActivatePackage(decompressed_apex))); in TEST_F()
3338 ASSERT_TRUE(IsOk(ActivatePackage(other_apex))); in TEST_F()
3410 ASSERT_TRUE(IsOk(ActivatePackage(apex_path_2))); in TEST_F()
3411 ASSERT_TRUE(IsOk(ActivatePackage(apex_path_3))); in TEST_F()
3412 ASSERT_TRUE(IsOk(ActivatePackage(decompressed_apex))); in TEST_F()
3456 ASSERT_TRUE(IsOk(ActivatePackage(apex_path_1))); in TEST_F()
3457 ASSERT_TRUE(IsOk(ActivatePackage(apex_path_2))); in TEST_F()