Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/driver/cache/BlobCache/
DBlobCache_test.cpp39 MAX_KEY_SIZE = 6, enumerator
45 mBC.reset(new BlobCache(MAX_KEY_SIZE, MAX_VALUE_SIZE, MAX_TOTAL_SIZE, GetParam())); in SetUp()
171 char key[MAX_KEY_SIZE + 1]; in TEST_P()
173 for (int i = 0; i < MAX_KEY_SIZE + 1; i++) { in TEST_P()
176 mBC->set(key, MAX_KEY_SIZE + 1, "bbbb", 4); in TEST_P()
178 ASSERT_EQ(size_t(0), mBC->get(key, MAX_KEY_SIZE + 1, buf, 4)); in TEST_P()
189 ASSERT_EQ(size_t(0), mBC->get(key, MAX_KEY_SIZE + 1, &bufPtr, [&calledAlloc](size_t) -> void* { in TEST_P()
219 ASSERT_TRUE(MAX_TOTAL_SIZE < MAX_KEY_SIZE + MAX_VALUE_SIZE); in TEST_P()
220 ASSERT_TRUE(MAX_KEY_SIZE < MAX_TOTAL_SIZE); in TEST_P()
222 enum { bufSize = MAX_TOTAL_SIZE - MAX_KEY_SIZE + 1 }; in TEST_P()
[all …]
/packages/modules/NeuralNetworks/driver/cache/nnCache/
DnnCache_test.cpp109 MAX_KEY_SIZE = 6, in TEST_P() enumerator
114 mCache->initialize(MAX_KEY_SIZE, MAX_VALUE_SIZE, MAX_TOTAL_SIZE, GetParam()); in TEST_P()