Home
last modified time | relevance | path

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

/system/core/libutils/tests/
DBlobCache_test.cpp31 MAX_VALUE_SIZE = 8, enumerator
36 mBC = new BlobCache(MAX_KEY_SIZE, MAX_VALUE_SIZE, MAX_TOTAL_SIZE); in SetUp()
106 unsigned char buf[MAX_VALUE_SIZE+1] = { 0xee, 0xee, 0xee, 0xee }; in TEST_F()
108 mBC->set("abcd", 4, buf, MAX_VALUE_SIZE+1); in TEST_F()
131 char buf[MAX_VALUE_SIZE+1]; in TEST_F()
132 for (int i = 0; i < MAX_VALUE_SIZE+1; i++) { in TEST_F()
135 mBC->set("abcd", 4, buf, MAX_VALUE_SIZE+1); in TEST_F()
136 for (int i = 0; i < MAX_VALUE_SIZE+1; i++) { in TEST_F()
139 ASSERT_EQ(size_t(0), mBC->get("abcd", 4, buf, MAX_VALUE_SIZE+1)); in TEST_F()
140 for (int i = 0; i < MAX_VALUE_SIZE+1; i++) { in TEST_F()
[all …]