Lines Matching defs:cache2
480 struct disk_cache *cache2 = disk_cache_create("test_between_instances",
490 result = (char *) disk_cache_get(cache2, blob_key, &size);
491 EXPECT_EQ(result, nullptr) << "disk_cache_get(cache2) with non-existent item (pointer)";
492 EXPECT_EQ(size, 0) << "disk_cache_get(cache2) with non-existent item (size)";
500 result = (char *) disk_cache_get(cache2, blob_key, &size);
501 EXPECT_STREQ(blob, result) << "disk_cache_get(cache2) of existing item (pointer)";
502 EXPECT_EQ(size, sizeof(blob)) << "disk_cache_get of(cache2) existing item (size)";
507 disk_cache_compute_key(cache2, string, sizeof(string), string_key);
508 disk_cache_put(cache2, string_key, string, sizeof(string), NULL);
511 disk_cache_wait_for_idle(cache2);
520 disk_cache_destroy(cache2);