chromium/third_party/blink/renderer/core/html/canvas/canvas_font_cache_test.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

// Regression test for crbug.com/1421699.
// When page becomes hidden the cache should be cleared. If this does not
// happen, setFontForTesting() should clear the cache instead.
TEST_F(CanvasFontCacheTest, HardMaxFontsOnPageVisibility) {}

}  // namespace blink