Home
last modified time | relevance | path

Searched refs:expr (Results 1 – 7 of 7) sorted by relevance

/hardware/interfaces/audio/common/all-versions/test/utility/include/utility/
DAssertOk.h38 inline ::testing::AssertionResult assertIsOk(const char* expr, const Return<T>& ret) { in assertIsOk() argument
40 << "Expected: " << expr << "\n to be an OK Return but it is not: " << ret.description(); in assertIsOk()
45 inline ::testing::AssertionResult continueIfIsOk(const char* expr, const Return<T>& ret, in continueIfIsOk() argument
47 auto isOkStatus = assertIsOk(expr, ret); in continueIfIsOk()
91 inline ::testing::AssertionResult assertOk(const char* expr, const Return<void>& ret) { in assertOk() argument
92 return assertIsOk(expr, ret); in assertOk()
96 inline ::testing::AssertionResult assertOk(const char* expr, Result result) { in assertOk() argument
98 << "Expected success: " << expr << "\nActual: " << ::testing::PrintToString(result); in assertOk()
102 inline ::testing::AssertionResult assertOk(const char* expr, const Return<Result>& ret) { in assertOk() argument
103 return continueIfIsOk(expr, ret, [&] { return assertOk(expr, Result{ret}); }); in assertOk()
/hardware/interfaces/health/2.1/vts/functional/
DVtsHalHealthV2_1TargetTest.cpp47 #define TEST_AND_RETURN(expr) \ argument
49 auto res = (expr); \
54 #define TEST_AND_RETURN_FAILURE(expr) \ argument
56 auto res = (expr); \
58 return AssertionFailure() << #expr " is false"; \
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/
Dbcmdefs.h37 #define STATIC_ASSERT(expr) { \ argument
39 typedef enum { _STATIC_ASSERT_NOT_CONSTANT = (expr) } _static_assert_e; \
41 typedef char STATIC_ASSERT_FAIL[(expr) ? 1 : -1]; \
/hardware/google/av/media/eco/include/eco/
DECOUtils.h32 #define RETURN_STATUS_IF_ERROR(expr) \ argument
34 status_t _errorCode = (expr); \
/hardware/google/av/media/eco/
DECOSession.cpp46 #define RETURN_IF_ERROR(expr) \ argument
48 status_t _errorCode = (expr); \
/hardware/interfaces/health/2.0/vts/functional/
DVtsHalHealthV2_0TargetTest.cpp44 #define TEST_AND_RETURN(expr) \ argument
46 auto res = (expr); \
/hardware/google/av/codec2/tests/
DC2ComponentInterface_test.cpp31 #define UNUSED(expr) \ argument
33 (void)(expr); \