5#include "flutter/shell/common/resource_cache_limit_calculator.h"
7#include "gtest/gtest.h"
15 : resource_cache_limit_(resource_cache_limit), weak_factory_(this) {}
20 return weak_factory_.GetWeakPtr();
24 size_t resource_cache_limit_;
28TEST(ResourceCacheLimitCalculatorTest, GetResourceCacheMaxBytes) {
30 auto item1 = std::make_unique<TestResourceCacheLimitItem>(100.0);
34 auto item2 = std::make_unique<TestResourceCacheLimitItem>(200.0);
38 auto item3 = std::make_unique<TestResourceCacheLimitItem>(300.0);
42 auto item4 = std::make_unique<TestResourceCacheLimitItem>(400.0);
void AddResourceCacheLimitItem(const fml::WeakPtr< ResourceCacheLimitItem > &item)
size_t GetResourceCacheMaxBytes()
size_t GetResourceCacheLimit() override
TestResourceCacheLimitItem(size_t resource_cache_limit)
fml::WeakPtr< TestResourceCacheLimitItem > GetWeakPtr()
TEST(DisplayListComplexity, EmptyDisplayList)