chromium/third_party/blink/renderer/core/css/resolver/font_builder_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/css/resolver/font_builder.h"

#include <memory>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/css/css_font_selector.h"
#include "third_party/blink/renderer/core/css/resolver/style_resolver.h"
#include "third_party/blink/renderer/core/css/style_engine.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/core/testing/dummy_page_holder.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"

namespace blink {

class FontBuilderTest {};

BuilderFunc;
DescriptionFunc;

struct FunctionPair {};

class FontBuilderInitTest : public FontBuilderTest, public testing::Test {};
class FontBuilderAdditiveTest : public FontBuilderTest,
                                public testing::TestWithParam<FunctionPair> {};

TEST_F(FontBuilderInitTest, InitialFontSizeNotScaled) {}

TEST_F(FontBuilderInitTest, NotDirty) {}

// This test verifies that when you are setting some field F via FontBuilder,
// only F is actually modified on the incoming
// ComputedStyle::GetFontDescription.
TEST_P(FontBuilderAdditiveTest, OnlySetValueIsModified) {}

static void FontWeightBase(FontDescription& d) {}
static void FontWeightValue(FontBuilder& b) {}

static void FontStretchBase(FontDescription& d) {}
static void FontStretchValue(FontBuilder& b) {}

static void FontFamilyBase(FontDescription& d) {}
static void FontFamilyValue(FontBuilder& b) {}

static void FontFeatureSettingsBase(FontDescription& d) {}
static void FontFeatureSettingsValue(FontBuilder& b) {}

static void FontStyleBase(FontDescription& d) {}
static void FontStyleValue(FontBuilder& b) {}

static void FontVariantCapsBase(FontDescription& d) {}
static void FontVariantCapsValue(FontBuilder& b) {}

static void FontVariantLigaturesBase(FontDescription& d) {}
static void FontVariantLigaturesValue(FontBuilder& b) {}

static void FontVariantNumericBase(FontDescription& d) {}
static void FontVariantNumericValue(FontBuilder& b) {}

static void FontSynthesisWeightBase(FontDescription& d) {}
static void FontSynthesisWeightValue(FontBuilder& b) {}

static void FontSynthesisStyleBase(FontDescription& d) {}
static void FontSynthesisStyleValue(FontBuilder& b) {}

static void FontSynthesisSmallCapsBase(FontDescription& d) {}
static void FontSynthesisSmallCapsValue(FontBuilder& b) {}

static void FontTextRenderingBase(FontDescription& d) {}
static void FontTextRenderingValue(FontBuilder& b) {}

static void FontKerningBase(FontDescription& d) {}
static void FontKerningValue(FontBuilder& b) {}

static void FontOpticalSizingBase(FontDescription& d) {}
static void FontOpticalSizingValue(FontBuilder& b) {}

static void FontFontSmoothingBase(FontDescription& d) {}
static void FontFontSmoothingValue(FontBuilder& b) {}

static void FontSizeBase(FontDescription& d) {}
static void FontSizeValue(FontBuilder& b) {}

static void FontScriptBase(FontDescription& d) {}
static void FontScriptValue(FontBuilder& b) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace blink