Searched refs:expected (Results 1 – 6 of 6) sorted by relevance
| /kernel/lib/unittest/include/lib/unittest/ |
| A D | unittest.h | 107 const AUTO_TYPE_VAR(expected) _e = (expected); \ 120 const AUTO_TYPE_VAR(expected) _e = (expected); \ 133 const AUTO_TYPE_VAR(expected) _e = (expected); \ 146 const AUTO_TYPE_VAR(expected) _e = (expected); \ 159 const AUTO_TYPE_VAR(expected) _e = (expected); \ 172 const AUTO_TYPE_VAR(expected) _e = (expected); \ 208 if (!unittest_expect_bytes((expected), #expected, \ 216 if (!unittest_expect_bytes((expected), #expected, \ 245 #define ASSERT_EQ(expected, actual, msg) UTCHECK_EQ(expected, actual, msg, true) argument 246 #define ASSERT_NE(expected, actual, msg) UTCHECK_NE(expected, actual, msg, true) argument [all …]
|
| /kernel/tests/ |
| A D | printf_tests.cpp | 16 static bool test_printf(const char* expected, const char* format, ...) { in test_printf() argument 31 if (length != (int)strlen(expected) || in test_printf() 32 memcmp(buf, expected, length + 1) != 0) { in test_printf() 34 expected, strlen(expected)); in test_printf()
|
| /kernel/lib/unittest/ |
| A D | unittest.cpp | 49 bool unittest_expect_bytes(const uint8_t* expected, in unittest_expect_bytes() argument 58 if (!memcmp(expected, actual, len) != expect_eq) { in unittest_expect_bytes() 68 hexdump8_very_ex(expected, len, (uint64_t)((addr_t)expected), unittest_printf); in unittest_expect_bytes()
|
| /kernel/dev/pcie/ |
| A D | pcie_bus_driver.cpp | 145 bool PcieBusDriver::AdvanceState(State expected, State next) { in AdvanceState() argument 148 if (state_ != expected) { in AdvanceState() 152 static_cast<uint>(expected), in AdvanceState()
|
| /kernel/dev/pcie/include/dev/ |
| A D | pcie_bus_driver.h | 180 bool AdvanceState(State expected, State next);
|
| /kernel/lib/heap/cmpctmalloc/ |
| A D | cmpctmalloc.cpp | 637 unsigned expected = (ROUNDUP(i, 8) >> 3) - 1; in cmpct_test_buckets() local 638 ASSERT(bucket == expected); in cmpct_test_buckets() 659 unsigned expected = bucket_base + ROUNDUP(i, j) / j; in cmpct_test_buckets() local 660 ASSERT(bucket == expected); in cmpct_test_buckets()
|
Completed in 20 milliseconds