void Insert(const std::string& key,
Cache::Priority priority = Cache::Priority::LOW) {
- cache_->Insert(key, 0 /*hash*/, nullptr /*value*/, 1 /*charge*/,
- nullptr /*deleter*/, nullptr /*handle*/, priority);
+ EXPECT_OK(cache_->Insert(key, 0 /*hash*/, nullptr /*value*/, 1 /*charge*/,
+ nullptr /*deleter*/, nullptr /*handle*/,
+ priority));
}
void Insert(char key, Cache::Priority priority = Cache::Priority::LOW) {