#include "third_party/blink/renderer/core/html/canvas/canvas_font_cache.h"
#include <memory>
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/dom_implementation.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h"
#include "third_party/blink/renderer/core/html/canvas/canvas_rendering_context.h"
#include "third_party/blink/renderer/core/html/canvas/html_canvas_element.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
namespace blink {
class CanvasFontCacheTest : public PageTestBase { … };
CanvasFontCacheTest::CanvasFontCacheTest() = default;
CanvasRenderingContext* CanvasFontCacheTest::Context2D() const { … }
void CanvasFontCacheTest::SetUp() { … }
TEST_F(CanvasFontCacheTest, CacheHardLimit) { … }
TEST_F(CanvasFontCacheTest, PageVisibilityChange) { … }
TEST_F(CanvasFontCacheTest, CreateDocumentFontCache) { … }
TEST_F(CanvasFontCacheTest, HardMaxFontsOnPageVisibility) { … }
}