Home
last modified time | relevance | path

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

/external/pigweed/pw_ring_buffer/
Dprefixed_entry_ring_buffer_test.cc65 constexpr size_t single_entry_total_size = sizeof(single_entry_data) + 1; variable
67 (single_entry_total_size * 7) / 2;
71 static_assert((single_entry_total_size % 2) == 0u);
80 byte read_buffer[single_entry_total_size]; in SingleEntryWriteReadTest()
108 size_t data_offset = single_entry_total_size - data_size; in SingleEntryWriteReadTest()
110 byte expect_buffer[single_entry_total_size] = {}; in SingleEntryWriteReadTest()
126 ASSERT_EQ(ring.FrontEntryTotalSizeBytes(), single_entry_total_size); in SingleEntryWriteReadTest()
141 ASSERT_EQ(read_size, single_entry_total_size); in SingleEntryWriteReadTest()
149 ASSERT_EQ(memcmp(expect_buffer, read_buffer, single_entry_total_size), 0); in SingleEntryWriteReadTest()
180 single_entry_test_buffer_size / single_entry_total_size;
[all …]