// // Copyright 2018 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // BlobCache_unittest.h: Unit tests for the blob cache. #include <gtest/gtest.h> #include "libANGLE/BlobCache.h" namespace egl { // Note: this is fairly similar to SizedMRUCache_unittest, and makes sure the // BlobCache usage of SizedMRUCache is not broken. BlobPut; Blob; Key; template <typename T> void MakeSequence(T &seq, uint8_t start) { … } BlobPut MakeBlob(size_t size, uint8_t start = 0) { … } Key MakeKey(uint8_t start = 0) { … } // Test a cache with a value that takes up maximum size. TEST(BlobCacheTest, MaxSizedValue) { … } // Test a cache with many small values, that it can handle unlimited inserts. TEST(BlobCacheTest, ManySmallValues) { … } // Tests putting an oversize element. TEST(BlobCacheTest, OversizeValue) { … } } // namespace egl