#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/core/css/font_face_cache.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/css/css_font_face_src_value.h"
#include "third_party/blink/renderer/core/css/css_font_family_value.h"
#include "third_party/blink/renderer/core/css/css_font_style_range_value.h"
#include "third_party/blink/renderer/core/css/css_identifier_value.h"
#include "third_party/blink/renderer/core/css/css_numeric_literal_value.h"
#include "third_party/blink/renderer/core/css/css_property_value_set.h"
#include "third_party/blink/renderer/core/css/css_segmented_font_face.h"
#include "third_party/blink/renderer/core/css/css_value_list.h"
#include "third_party/blink/renderer/core/css/font_face.h"
#include "third_party/blink/renderer/core/css/style_rule.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
namespace blink {
class FontFaceCacheTest : public PageTestBase { … };
void FontFaceCacheTest::SetUp() { … }
void FontFaceCacheTest::ClearCache() { … }
void FontFaceCacheTest::AppendTestFaceForCapabilities(const CSSValue& stretch,
const CSSValue& style,
const CSSValue& weight) { … }
void FontFaceCacheTest::AppendTestFaceForCapabilities(
const CSSValue& stretch,
const CSSValue& style,
const CSSPrimitiveValue& start_weight,
const CSSPrimitiveValue& end_weight) { … }
FontDescription FontFaceCacheTest::FontDescriptionForRequest(
FontSelectionValue stretch,
FontSelectionValue style,
FontSelectionValue weight) { … }
TEST_F(FontFaceCacheTest, Instantiate) { … }
TEST_F(FontFaceCacheTest, SimpleWidthMatch) { … }
TEST_F(FontFaceCacheTest, SimpleWeightMatch) { … }
static HeapVector<Member<CSSValue>> AvailableCapabilitiesChoices(
size_t choice,
CSSValue* available_values[2]) { … }
FontSelectionRange ExpectedRangeForChoice(
FontSelectionValue request,
size_t choice,
const Vector<FontSelectionValue>& choices) { … }
TEST_F(FontFaceCacheTest, DISABLED_MatchCombinations) { … }
TEST_F(FontFaceCacheTest, WidthRangeMatching) { … }
TEST_F(FontFaceCacheTest, WidthRangeMatchingBetween400500) { … }
TEST_F(FontFaceCacheTest, StretchRangeMatching) { … }
TEST_F(FontFaceCacheTest, ObliqueRangeMatching) { … }
}