| 36 | |
| 37 | namespace { |
| 38 | void verifyCacheStats( |
| 39 | const SimpleLRUCacheStats& actual, |
| 40 | size_t maxSize, |
| 41 | size_t curSize, |
| 42 | size_t numHits, |
| 43 | size_t numLookups) { |
| 44 | SimpleLRUCacheStats expectedStats{maxSize, curSize, numHits, numLookups}; |
| 45 | EXPECT_EQ(actual, expectedStats) << " Actual " << actual.toString() |
| 46 | << " Expected " << expectedStats.toString(); |
| 47 | } |
| 48 | } // namespace |
| 49 | |
| 50 | TEST(SimpleLRUCache, basicCaching) { |