| 69 | } |
| 70 | |
| 71 | bool SameDicts(const CacheEntry& cached, |
| 72 | const std::vector<std::weak_ptr<const Dict>>& current) { |
| 73 | if (cached.dicts.size() != current.size()) { |
| 74 | return false; |
| 75 | } |
| 76 | for (size_t i = 0; i < current.size(); i++) { |
| 77 | if (cached.dicts[i].expired() || !SameOwner(cached.dicts[i], current[i])) { |
| 78 | return false; |
| 79 | } |
| 80 | } |
| 81 | return true; |
| 82 | } |
| 83 | |
| 84 | bool HasExpiredDict(const CacheEntry& cached) { |
| 85 | if (cached.tables.expired()) { |
no test coverage detected