| 25 | namespace gandiva { |
| 26 | |
| 27 | class TestCacheKey { |
| 28 | public: |
| 29 | explicit TestCacheKey(int value) : value_(value) {} |
| 30 | std::size_t Hash() const { return value_; } |
| 31 | bool operator==(const TestCacheKey& other) const { return value_ == other.value_; } |
| 32 | |
| 33 | private: |
| 34 | int value_; |
| 35 | }; |
| 36 | |
| 37 | TEST(TestCache, TestGetPut) { |
| 38 | Cache<TestCacheKey, std::shared_ptr<std::string>> cache(2); |