Lines Matching refs:IsOk
68 using android::apex::testing::IsOk;
104 ASSERT_TRUE(IsOk(status)); in SetUp()
321 ASSERT_FALSE(IsOk(apex_file)); in Prepare()
425 ASSERT_TRUE(IsOk(status)); in CleanUp()
482 ASSERT_FALSE(IsOk(st)); in TEST_F()
507 ASSERT_FALSE(IsOk(st));
538 ASSERT_TRUE(IsOk(service_->stagePackage(installer.test_file, &success))); in TEST_F()
556 ASSERT_TRUE(IsOk(service_->submitStagedSession(1543, {}, &list, &success))); in TEST_F()
580 ASSERT_TRUE(IsOk(service_->submitStagedSession(239, {}, &list, &success))); in TEST_F()
602 ASSERT_TRUE(IsOk(service_->stagePackage(installer.test_file, &success))); in TEST_F()
624 ASSERT_TRUE(IsOk(service_->stagePackage(installer.test_file, &success))); in TEST_F()
629 ASSERT_TRUE(IsOk(service_->stagePackage(installer.test_file, &success))); in TEST_F()
653 ASSERT_TRUE(IsOk(service_->stagePackages(packages, &success))); in TEST_F()
682 ASSERT_TRUE(IsOk(active)); in SetUp()
689 IsOk(service_->stagePackage(installer_->test_file, &success))); in SetUp()
743 ASSERT_FALSE(IsOk(st)); in TEST_F()
756 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
762 ASSERT_TRUE(IsOk(active)); in TEST_F()
803 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
807 ASSERT_TRUE(IsOk(active)); in TEST_F()
823 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
827 ASSERT_TRUE(IsOk(active)); in TEST_F()
837 ASSERT_TRUE(IsOk(factoryPackages)); in TEST_F()
847 ASSERT_TRUE(IsOk(activePackages)); in TEST_F()
850 ASSERT_TRUE(IsOk(inactivePackages)); in TEST_F()
867 ASSERT_TRUE(IsOk(allPackages)); in TEST_F()
887 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
891 ASSERT_TRUE(IsOk(service_->stagePackage(installer_->test_file, &success))); in TEST_F()
938 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
944 IsOk(service_->deactivatePackage(installer_->test_installed_file))); in TEST_F()
972 ASSERT_TRUE(IsOk(st)); in RunPrePost()
974 ASSERT_FALSE(IsOk(st)); in RunPrePost()
985 ASSERT_TRUE(IsOk(active)); in RunPrePost()
990 ASSERT_TRUE(IsOk(apex)); in RunPrePost()
1051 ASSERT_TRUE(IsOk(service_->submitStagedSession(123, empty_child_session_ids, in TEST_F()
1069 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(123, &session))) in TEST_F()
1075 ASSERT_TRUE(IsOk(service_->markStagedSessionReady(123, &ret_value))) in TEST_F()
1079 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(123, &session))) in TEST_F()
1086 ASSERT_TRUE(IsOk(service_->markStagedSessionReady(123, &ret_value))) in TEST_F()
1090 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(123, &session))) in TEST_F()
1096 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))) in TEST_F()
1111 ASSERT_TRUE(IsOk(session1)); in TEST_F()
1113 ASSERT_TRUE(IsOk(session2)); in TEST_F()
1115 ASSERT_TRUE(IsOk(session3)); in TEST_F()
1116 ASSERT_TRUE(IsOk(session1->UpdateStateAndCommit(SessionState::VERIFIED))); in TEST_F()
1117 ASSERT_TRUE(IsOk(session2->UpdateStateAndCommit(SessionState::STAGED))); in TEST_F()
1118 ASSERT_TRUE(IsOk(session3->UpdateStateAndCommit(SessionState::SUCCESS))); in TEST_F()
1121 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
1136 ASSERT_TRUE(IsOk(service_->submitStagedSession(239, empty_child_session_ids, in TEST_F()
1141 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
1166 ASSERT_TRUE(IsOk(service_->submitStagedSession(456, empty_child_session_ids,
1172 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(456, &session)))
1196 ASSERT_TRUE(IsOk( in TEST_F()
1224 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(10, &session))) in TEST_F()
1230 ASSERT_TRUE(IsOk(service_->markStagedSessionReady(10, &ret_value))) in TEST_F()
1234 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(10, &session))) in TEST_F()
1263 ASSERT_TRUE(IsOk(
1273 ASSERT_TRUE(IsOk(service_->markStagedSessionReady(666, &ret_value))); in TEST_F()
1277 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(666, &session))); in TEST_F()
1284 ASSERT_FALSE(IsOk(service_->markStagedSessionSuccessful(37))); in TEST_F()
1287 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(37, &session_info))); in TEST_F()
1295 ASSERT_TRUE(IsOk(session)); in TEST_F()
1297 IsOk(session->UpdateStateAndCommit(::apex::proto::SessionState::STAGED))); in TEST_F()
1299 ASSERT_FALSE(IsOk(service_->markStagedSessionSuccessful(73))); in TEST_F()
1302 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(73, &session_info))); in TEST_F()
1310 ASSERT_TRUE(IsOk(session)); in TEST_F()
1311 ASSERT_TRUE(IsOk( in TEST_F()
1314 ASSERT_TRUE(IsOk(service_->markStagedSessionSuccessful(239))); in TEST_F()
1317 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(239, &session_info))); in TEST_F()
1325 ASSERT_TRUE(IsOk(session)); in TEST_F()
1326 ASSERT_TRUE(IsOk( in TEST_F()
1329 ASSERT_TRUE(IsOk(service_->markStagedSessionSuccessful(1543))); in TEST_F()
1332 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(1543, &session_info))); in TEST_F()
1341 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
1343 ASSERT_TRUE(IsOk(service_->abortActiveSession())); in TEST_F()
1351 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
1354 ASSERT_TRUE(IsOk(service_->abortActiveSession())); in TEST_F()
1357 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
1379 ASSERT_TRUE(IsOk(service_->stagePackages(pkgs, &ret))); in TEST_F()
1385 ASSERT_TRUE(IsOk(active_pkgs)); in TEST_F()
1392 ASSERT_TRUE(IsOk( in TEST_F()
1397 ASSERT_TRUE(IsOk(backups)); in TEST_F()
1421 ASSERT_TRUE(IsOk(createDirIfNeeded(std::string(kApexBackupDir), 0700))); in TEST_F()
1429 ASSERT_TRUE(IsOk(service_->stagePackages(pkgs, &ret))); in TEST_F()
1435 ASSERT_TRUE(IsOk(active_pkgs)); in TEST_F()
1442 ASSERT_TRUE(IsOk( in TEST_F()
1447 ASSERT_TRUE(IsOk(backups)); in TEST_F()
1469 IsOk(createDirIfNeeded(std::string(kActiveApexPackagesDataDir), 0750))); in TEST_F()
1472 ASSERT_TRUE(IsOk(active_pkgs)); in TEST_F()
1478 ASSERT_TRUE(IsOk( in TEST_F()
1483 ASSERT_TRUE(IsOk(backups)); in TEST_F()
1504 ASSERT_TRUE(IsOk( in TEST_F()
1510 ASSERT_TRUE(IsOk(backups)); in TEST_F()
1526 ASSERT_TRUE(IsOk(service_->stagePackages(pkgs, &ret))); in TEST_F()
1530 ASSERT_TRUE(IsOk(service_->unstagePackages(pkgs))); in TEST_F()
1534 ASSERT_TRUE(IsOk(active_packages)); in TEST_F()
1550 ASSERT_TRUE(IsOk(service_->stagePackages(pkgs, &ret))); in TEST_F()
1554 ASSERT_FALSE(IsOk(service_->unstagePackages(pkgs))); in TEST_F()
1559 ASSERT_TRUE(IsOk(active_packages)); in TEST_F()
1569 ASSERT_TRUE(IsOk(createDirIfNeeded(std::string(kApexBackupDir), 0700))); in PrepareBackup()
1594 ASSERT_TRUE(IsOk(active_pkgs)); in CheckRollbackWasPerformed()
1609 ASSERT_TRUE(IsOk(session)); in TEST_F()
1610 ASSERT_TRUE(IsOk(session->UpdateStateAndCommit(SessionState::ACTIVATED))); in TEST_F()
1614 ASSERT_TRUE(IsOk(service_->stagePackage(installer.test_file, &ret))); in TEST_F()
1620 ASSERT_TRUE(IsOk(service_->abortActiveSession())); in TEST_F()
1629 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
1646 ASSERT_TRUE(IsOk(session)); in TEST_F()
1647 ASSERT_TRUE(IsOk(session->UpdateStateAndCommit(SessionState::ACTIVATED))); in TEST_F()
1651 ASSERT_TRUE(IsOk(service_->stagePackage(installer.test_file, &ret))); in TEST_F()
1656 ASSERT_TRUE(IsOk(service_->rollbackActiveSession())); in TEST_F()
1674 ASSERT_TRUE(IsOk(service_->stagePackage(installer.test_file, &ret))); in TEST_F()
1681 ASSERT_FALSE(IsOk(service_->rollbackActiveSession())); in TEST_F()
1685 ASSERT_FALSE(IsOk(service_->rollbackActiveSession())); in TEST_F()
1690 ASSERT_FALSE(IsOk(service_->rollbackActiveSession())); in TEST_F()
1698 ASSERT_TRUE(IsOk(session)); in TEST_F()
1699 ASSERT_TRUE(IsOk(session->UpdateStateAndCommit(SessionState::ACTIVATED))); in TEST_F()
1701 ASSERT_TRUE(IsOk(service_->markStagedSessionSuccessful(101))); in TEST_F()
1720 ASSERT_TRUE(IsOk(service_->stagePackage(installer.test_file, &ret))); in TEST_F()
1724 ASSERT_TRUE(IsOk(session)); in TEST_F()
1726 IsOk(session->UpdateStateAndCommit(SessionState::ROLLBACK_IN_PROGRESS))); in TEST_F()
1728 ASSERT_TRUE(IsOk(service_->resumeRollbackIfNeeded())); in TEST_F()
1738 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
1755 ASSERT_TRUE(IsOk(service_->stagePackage(installer.test_file, &ret))); in TEST_F()
1759 ASSERT_TRUE(IsOk(session)); in TEST_F()
1760 ASSERT_TRUE(IsOk(session->UpdateStateAndCommit(SessionState::SUCCESS))); in TEST_F()
1762 ASSERT_TRUE(IsOk(service_->resumeRollbackIfNeeded())); in TEST_F()
1767 ASSERT_TRUE(IsOk(active_pkgs)); in TEST_F()
1772 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
1784 ASSERT_TRUE(IsOk(session)); in TEST_F()
1785 ASSERT_TRUE(IsOk(session->UpdateStateAndCommit(SessionState::ACTIVATED))); in TEST_F()
1787 ASSERT_FALSE(IsOk(service_->rollbackActiveSession())); in TEST_F()
1789 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(53, &session_info))); in TEST_F()
1801 ASSERT_TRUE(IsOk(session)); in TEST_F()
1803 IsOk(session->UpdateStateAndCommit(SessionState::ROLLBACK_FAILED))); in TEST_F()
1805 ASSERT_FALSE(IsOk(service_->rollbackActiveSession())); in TEST_F()
1807 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(17239, &session_info))); in TEST_F()
1956 ASSERT_TRUE(IsOk(service_->getAllPackages(&list))); in SetUp()
1976 ASSERT_TRUE(IsOk(service_->stagePackage(installer.test_file, &success))); in TEST_F()
1990 ASSERT_FALSE(IsOk(status)); in TEST_F()
2007 ASSERT_TRUE(IsOk(service_->submitStagedSession(23, {}, &list, &success))); in TEST_F()
2022 ASSERT_TRUE(IsOk(service_->submitStagedSession(43, {}, &list, &success))); in TEST_F()
2036 ASSERT_TRUE(IsOk(service_->submitStagedSession(41, {}, &list, &success))); in TEST_F()
2050 ASSERT_TRUE(IsOk(service_->submitStagedSession(42, {}, &list, &success))); in TEST_F()
2065 ASSERT_TRUE(IsOk(service_->submitStagedSession(57, {}, &list, &success))); in TEST_F()
2072 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
2077 ASSERT_TRUE(IsOk(flattened_apex)); in TEST_F()
2083 ASSERT_FALSE(IsOk(status)); in TEST_F()