Home
last modified time | relevance | path

Searched refs:PW_CHECK_OK (Results 1 – 8 of 8) sorted by relevance

/external/pigweed/pw_assert/
Dassert_backend_compile_test.cc209 PW_CHECK_OK(status); in TEST()
210 PW_CHECK_OK(status, "msg"); in TEST()
211 PW_CHECK_OK(status, "msg: %d", 5); in TEST()
219 PW_CHECK_OK(pw::OkStatus()); in TEST()
222 PW_CHECK_OK(MakeStatus(pw::OkStatus())); in TEST()
225 PW_CHECK_OK(PW_STATUS_OK); in TEST()
Dassert_facade_test.cc458 PW_CHECK_OK(status); in TEST_F()
464 PW_CHECK_OK(status, "msg"); in TEST_F()
470 PW_CHECK_OK(status, "msg: %d", 5); in TEST_F()
478 PW_CHECK_OK(DoTheThing()); in TEST_F()
486 TEST_F(AssertPass, Function) { PW_CHECK_OK(pw::OkStatus()); } in TEST_F()
487 TEST_F(AssertPass, Enum) { PW_CHECK_OK(PW_STATUS_OK); } in TEST_F()
488 TEST_F(AssertFail, Function) { PW_CHECK_OK(pw::Status::Unknown()); } in TEST_F()
489 TEST_F(AssertFail, Enum) { PW_CHECK_OK(PW_STATUS_UNKNOWN); } in TEST_F()
Dassert_backend_compile_test_c.c203 PW_CHECK_OK(PW_STATUS_OK); in AssertBackendCompileTestsInC()
204 PW_CHECK_OK(PW_STATUS_OK, "msg"); in AssertBackendCompileTestsInC()
205 PW_CHECK_OK(PW_STATUS_OK, "msg: %d", 5); in AssertBackendCompileTestsInC()
Ddocs.rst151 Additionally, use ``PW_CHECK_OK(status)`` when checking for an OK status,
165 | ``PW_CHECK(Foo() == OkStatus())`` | ``PW_CHECK_OK(Foo())`` |
363 .. cpp:function:: PW_CHECK_OK(status)
364 .. cpp:function:: PW_CHECK_OK(status, format, ...)
378 PW_CHECK_OK(operation_status);
381 PW_CHECK_OK(DoTheThing(), "System state: %s", SystemState());
385 PW_CHECK_OK(c_status, "System state: %s", SystemState());
389 Using ``PW_CHECK_OK(status)`` instead of ``PW_CHECK(status == OkStatus())``
/external/pigweed/pw_assert/public/pw_assert/
Dshort.h50 #define CHECK_OK PW_CHECK_OK
/external/pigweed/pw_assert/public/pw_assert/internal/
Dcheck_impl.h136 #define PW_CHECK_OK(status, ...) \ macro
149 PW_CHECK_OK(__VA_ARGS__)
/external/pigweed/pw_allocator/
Dfreelist_heap.cc27 PW_CHECK_OK( in FreeListHeap()
/external/pigweed/pw_ring_buffer/
Dprefixed_entry_ring_buffer_test.cc424 PW_CHECK_OK(reader.PeekFront(aliased.buffer, &bytes_read)); in PeekFront()