/fuchsia/zircon/third_party/ulib/jemalloc/test/unit/ |
H A D | prof_active.c | 9 mallctl_bool_get(const char *name, bool expected, const char *func, int line) argument 17 assert_b_eq(old, expected, "%s():%d: Unexpected %s value", func, line,
|
H A D | mallctl.c | 159 int expected = config_##config ? 0 : ENOENT; \ 162 assert_d_eq(result, expected, \ 553 #define TEST_ARENAS_CONSTANT(t, name, expected) do { \ 558 assert_zu_eq(name, expected, "Incorrect "#name" size"); \ 572 #define TEST_ARENAS_BIN_CONSTANT(t, name, expected) do { \ 577 assert_zu_eq(name, expected, "Incorrect "#name" size"); \ 591 #define TEST_ARENAS_LEXTENT_CONSTANT(t, name, expected) do { \ 596 assert_zu_eq(name, expected, "Incorrect "#name" size"); \
|
/fuchsia/zircon/system/utest/digest/ |
H A D | merkle-tree.cpp | 23 #define ASSERT_ERR(expected, expr) \ 25 ASSERT_EQ(expected, rc, zx_status_get_string(rc)) 202 Digest expected; local 203 ASSERT_OK(expected.Parse(digest, strlen(digest))); 204 ASSERT_TRUE(actual == expected, "Incorrect root digest"); 285 Digest expected; local 286 ASSERT_OK(expected.Parse(digest, strlen(digest))); 287 ASSERT_TRUE(actual == expected, "Incorrect root digest"); 320 Digest expected; local 321 ASSERT_OK(expected 346 Digest expected; local 375 Digest expected; local [all...] |
/fuchsia/zircon/kernel/lib/unittest/ |
H A D | unittest.cpp | 49 bool unittest_expect_bytes(const uint8_t* expected, argument 58 if (!memcmp(expected, actual, len) != expect_eq) { 67 unittest_printf("expected (%s)\n", expected_name); 68 hexdump8_very_ex(expected, len, (uint64_t)((addr_t)expected), unittest_printf);
|
/fuchsia/zircon/third_party/ulib/backtrace/ |
H A D | btest.c | 145 fprintf (stderr, "%s: [%d]: got %s expected test.c\n", name, index, 151 fprintf (stderr, "%s: [%d]: got %d expected %d\n", name, index, 157 fprintf (stderr, "%s: [%d]: got %s expected %s\n", name, index, 327 "test1: not enough frames; got %zu, expected at least 3\n", 463 "got %u expected %d\n"), 498 const char *expected; local 503 expected = "f23"; 506 expected = "f22"; 509 expected = "test3"; 522 else if (strncmp (symdata.name, expected, strle 528 j, symdata.name, expected); local [all...] |
/fuchsia/zircon/system/utest/zbi/ |
H A D | zbi.cpp | 100 const char* expected = nullptr; local 105 expected = kTestCmdline; 108 expected = kTestRD; 111 expected = kTestBootfs; 120 if (!strcmp(expected, actual)) {
|
/fuchsia/zircon/system/ulib/tftp/ |
H A D | tftp-test.cpp | 709 } expected; member in struct:tx_test_data 719 expected.block = 1; 720 expected.offset = 0; 721 expected.len = DEFAULT_BLOCKSIZE; 722 expected.data[0] = 'F'; 723 expected.data[DEFAULT_BLOCKSIZE - 1] = 'X'; 732 EXPECT_EQ(td.expected.offset, td.actual.offset, "read offset mismatch"); 733 EXPECT_EQ(td.expected.len, td.actual.len, "read length mismatch"); 738 ASSERT_EQ(td.expected.block, ntohs(msg->block), "bad block number"); 739 EXPECT_BYTES_EQ(td.expected 989 verify_write_data(const uint8_t* expected, const tx_test_data& td) argument [all...] |
/fuchsia/zircon/system/utest/fs/ |
H A D | test-minfs.cpp | 61 bool VerifyQueryInfo(const ExpectedQueryInfo& expected) { argument 66 ASSERT_EQ(info.total_bytes, expected.total_bytes); 67 ASSERT_EQ(info.used_bytes, expected.used_bytes); 68 ASSERT_EQ(info.total_nodes, expected.total_nodes); 69 ASSERT_EQ(info.used_nodes, expected.used_nodes); 70 ASSERT_EQ(info.free_shared_pool_bytes, expected.free_shared_pool_bytes); 295 // This is expected to fail. 373 // remount the partition. This is expected to fail without block reservation. 396 // If we ended up with fewer blocks than expected, truncate sml_fd to create more space.
|
/fuchsia/zircon/system/ulib/bootdata/ |
H A D | decompress.c | 50 size_t expected, const char** err) { 79 if (fd->content_size != expected) { 49 check_lz4_frame(const lz4_frame_desc* fd, size_t expected, const char** err) argument
|
/fuchsia/zircon/system/utest/spawn/ |
H A D | child.c | 79 static bool check_env(const char* name, const char* expected) { argument 83 return !strcmp(actual, expected);
|
/fuchsia/zircon/system/utest/fbl/ |
H A D | atomic_tests.cpp | 903 bool (*function)(fbl::atomic<T>* atomic_ptr, T* expected, T desired, 912 {[](fbl::atomic<T>* atomic_ptr, T* expected, T desired, 914 return atomic_ptr->compare_exchange_weak(expected, desired, success_order, failure_order); 917 {[](fbl::atomic<T>* atomic_ptr, T* expected, T desired, 919 return atomic_ptr->compare_exchange_strong(expected, desired, success_order, failure_order); 926 bool (*function)(volatile fbl::atomic<T>* atomic_ptr, T* expected, T desired, 935 {[](volatile fbl::atomic<T>* atomic_ptr, T* expected, T desired, 937 return atomic_ptr->compare_exchange_weak(expected, desired, success_order, failure_order); 940 {[](volatile fbl::atomic<T>* atomic_ptr, T* expected, T desired, 942 return atomic_ptr->compare_exchange_strong(expected, desire 1068 T expected = cas_test_values<T>[kExpected]; local 1079 T expected = actual; local 1100 T expected = cas_test_values<T>[kExpected]; local 1111 T expected = actual; local [all...] |
H A D | string_buffer_tests.cpp | 9 #define EXPECT_DATA_AND_LENGTH(expected, actual) \ 11 EXPECT_STR_EQ(expected, actual.data()); \ 12 EXPECT_EQ(strlen(expected), actual.length()); \
|
H A D | slab_allocator_tests.cpp | 199 static bool CheckObjCount(const SA& allocator, size_t expected) { argument 200 return (allocator.obj_count() == expected); 202 static bool CheckMaxObjCount(const SA& allocator, size_t expected) { argument 203 return (allocator.max_obj_count() == expected); 208 static bool StaticCheckObjCount(size_t expected) { argument 209 return (SA::obj_count() == expected); 211 static bool StaticCheckMaxObjCount(size_t expected) { argument 212 return (SA::max_obj_count() == expected);
|
H A D | vector_tests.cpp | 70 static bool CheckLiveCount(size_t expected) { return true; } argument 78 static bool CheckLiveCount(size_t expected) { return TestObject::live_obj_count() == expected; } argument 92 static bool CheckLiveCount(size_t expected) { return TestObject::live_obj_count() == expected; } argument 114 static bool CheckLiveCount(size_t expected) { return TestObject::live_obj_count() == expected; } argument
|
/fuchsia/zircon/system/ulib/unittest/ |
H A D | unittest.cpp | 83 bool unittest_expect_bytes_eq(const uint8_t* expected, const uint8_t* actual, size_t len, argument 85 if (memcmp(expected, actual, len)) { 86 printf("%s. expected\n", msg); 87 hexdump8(expected, len); 126 " but expected different strings:\n" 217 // TODO: display which expected crash did not occur.
|
/fuchsia/zircon/system/ulib/digest/ |
H A D | merkle-tree.cpp | 156 // Must not overrun expected length. 274 const Digest& expected) { 288 return (actual == expected ? ZX_OK : ZX_ERR_IO_DATA_INTEGRITY); 299 // Must not overrun expected length. 310 const uint8_t* expected = static_cast<const uint8_t*>(tree) + (offset / kDigestsPerNode); local 321 if (actual != expected) { 324 expected += Digest::kLength; 273 VerifyRoot(const void* data, size_t root_len, uint64_t level, const Digest& expected) argument
|
/fuchsia/zircon/system/dev/block/zxcrypt/ |
H A D | device.cpp | 344 uint32_t expected = kActive; local 345 uint32_t desired = expected + 1; 346 while (!state_.compare_exchange_weak(&expected, desired, fbl::memory_order_seq_cst, 348 if ((expected & kActive) == 0) { 353 if ((expected & kMaxReqs) == kMaxReqs) { 358 desired = expected + 1;
|
/fuchsia/zircon/system/utest/libhwreg/ |
H A D | bitfields-test.cpp | 404 const char* expected[] = { local 411 EXPECT_STR_EQ(expected[call_count], buf, "mismatch"); 414 EXPECT_EQ(fbl::count_of(expected), call_count); 428 const char* expected[] = { local 434 EXPECT_STR_EQ(expected[call_count], buf, "mismatch"); 437 EXPECT_EQ(fbl::count_of(expected), call_count);
|
/fuchsia/zircon/system/utest/runtests-utils/ |
H A D | runtests-utils-test-utils.h | 146 // Returns true if and only if the contents of |file| match |expected|. 147 bool CompareFileContents(FILE* file, const char* expected);
|
H A D | runtests-utils-test-utils.cpp | 108 // Returns true if and only if the contents of |file| match |expected|. 109 bool CompareFileContents(FILE* file, const char* expected) { argument 118 EXPECT_STR_EQ(expected, buf.get());
|
/fuchsia/zircon/system/dev/usb/usb-bus/ |
H A D | util.c | 142 uintptr_t expected = 0; local 143 if (atomic_compare_exchange_strong(&dev->lang_ids, &expected, (uintptr_t)id_desc)) {
|
/fuchsia/zircon/system/dev/usb/xhci/ |
H A D | xhci.h | 217 void xhci_wait_bits(volatile uint32_t* ptr, uint32_t bits, uint32_t expected); 218 void xhci_wait_bits64(volatile uint64_t* ptr, uint64_t bits, uint64_t expected);
|
/fuchsia/zircon/system/ulib/lockdep/include/lockdep/ |
H A D | lock_class_state.h | 218 void CompareExchangeParent(LoopNode** expected, LoopNode* desired) { argument 219 parent.compare_exchange_weak(expected, desired,
|
/fuchsia/zircon/system/utest/zxcrypt/ |
H A D | volume.cpp | 27 zx_status_t expected) { 45 EXPECT_EQ(Volume::Create(fbl::move(new_fd), key), expected, err); 26 VolumeCreate(const fbl::unique_fd& fd, const crypto::Secret& key, bool fvm, zx_status_t expected) argument
|
/fuchsia/zircon/system/utest/fs-vnode/ |
H A D | pseudo-file-tests.cpp | 11 #define EXPECT_FSTR_EQ(expected, actual) \ 12 EXPECT_BYTES_EQ(reinterpret_cast<const uint8_t*>(expected.c_str()), \ 14 expected.size() + 1u, "unequal fbl::String") 69 size_t length, size_t offset, fbl::StringPiece expected) { 76 EXPECT_EQ(expected.size(), actual); 77 EXPECT_BYTES_EQ(reinterpret_cast<const uint8_t*>(expected.data()), buf, expected.size(), "");
|