Lines Matching defs:cache1
478 struct disk_cache *cache1 = disk_cache_create("test_between_instances",
483 disk_cache_compute_key(cache1, blob, sizeof(blob), blob_key);
486 result = (char *) disk_cache_get(cache1, blob_key, &size);
487 EXPECT_EQ(result, nullptr) << "disk_cache_get(cache1) with non-existent item (pointer)";
495 disk_cache_put(cache1, blob_key, blob, sizeof(blob), NULL);
498 disk_cache_wait_for_idle(cache1);
513 result = (char *) disk_cache_get(cache1, string_key, &size);
514 EXPECT_STREQ(result, string) << "2nd disk_cache_get(cache1) of existing item (pointer)";
515 EXPECT_EQ(size, sizeof(string)) << "2nd disk_cache_get(cache1) of existing item (size)";
519 disk_cache_destroy(cache1);