Searched refs:cacheAdd (Results 1 – 1 of 1) sorted by relevance
/packages/modules/DnsResolver/tests/ |
D | resolv_cache_unit_test.cpp | 191 int cacheAdd(uint32_t netId, const CacheEntry& ce) { in cacheAdd() function in ResolvCacheTest 195 int cacheAdd(uint32_t netId, const std::vector<uint8_t>& query, in cacheAdd() function in ResolvCacheTest 297 EXPECT_EQ(-EINVAL, cacheAdd(TEST_NETID, queryEmpty, ce.answer)); in TEST_F() 298 EXPECT_EQ(-EINVAL, cacheAdd(TEST_NETID, queryTooSmall, ce.answer)); in TEST_F() 301 EXPECT_EQ(-ENONET, cacheAdd(TEST_NETID_2, ce)); in TEST_F() 311 EXPECT_EQ(0, cacheAdd(TEST_NETID, ce)); in TEST_F() 320 EXPECT_EQ(-EEXIST, cacheAdd(TEST_NETID, ce)); in TEST_F() 334 EXPECT_EQ(0, cacheAdd(TEST_NETID, ce)); in TEST_F() 344 EXPECT_EQ(0, cacheAdd(TEST_NETID, ce)); in TEST_F() 365 EXPECT_EQ(0, cacheAdd(TEST_NETID, ce)); in TEST_F() [all …]
|