Searched refs:TEST_AND_RETURN (Results 1 – 2 of 2) sorted by relevance
/hardware/interfaces/health/2.1/vts/functional/ |
D | VtsHalHealthV2_1TargetTest.cpp | 47 #define TEST_AND_RETURN(expr) \ macro 150 TEST_AND_RETURN(ResultIsSuccess(service->registerCallback(first))); in TestCallbacks() 151 TEST_AND_RETURN(ResultIsSuccess(service->registerCallback(second))); in TestCallbacks() 160 TEST_AND_RETURN(ResultIsSuccess(service->update())); in TestCallbacks() 165 TEST_AND_RETURN(ResultIsSuccess(service->unregisterCallback(first))); in TestCallbacks() 173 TEST_AND_RETURN(ResultIsSuccess(service->update())); in TestCallbacks() 178 TEST_AND_RETURN(ResultIsSuccess(service->unregisterCallback(second))); in TestCallbacks() 194 TEST_AND_RETURN(IsOk(ret)); in TestUnregisterNonExistentCallback()
|
/hardware/interfaces/health/2.0/vts/functional/ |
D | VtsHalHealthV2_0TargetTest.cpp | 44 #define TEST_AND_RETURN(expr) \ macro 443 TEST_AND_RETURN(IsValueSimilar(currentNow.value, currentAverage.value, gCurrentCompareFactor) in IsBatteryCurrentSimilar() 445 TEST_AND_RETURN(IsValueSimilar(currentAverage.value, currentNow.value, gCurrentCompareFactor) in IsBatteryCurrentSimilar() 490 TEST_AND_RETURN(isOk(mHealth->getHealthInfo([&](auto result, const auto& value) { in TEST_P() 506 TEST_AND_RETURN(isOk(mHealth->getHealthInfo([&](auto result, const auto& value) { in TEST_P() 522 TEST_AND_RETURN(isOk(mHealth->getHealthInfo([&](auto result, const auto& value) { in TEST_P() 539 TEST_AND_RETURN(isOk(mHealth->getChargeStatus([&](auto result, auto value) { in TEST_P() 542 TEST_AND_RETURN(isOk(mHealth->getCurrentNow([&](auto result, auto value) { in TEST_P() 557 TEST_AND_RETURN(isOk(mHealth->getChargeStatus([&](auto result, auto value) { in TEST_P() 561 TEST_AND_RETURN(isOk(mHealth->getCurrentAverage([&](auto result, auto value) { in TEST_P() [all …]
|