chromium/third_party/blink/renderer/platform/fonts/shaping/font_features_test.cc

// Copyright 2021 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/platform/fonts/shaping/font_features.h"

#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/fonts/font_description.h"

namespace blink {

namespace {

class FontFeaturesTest : public testing::Test {};

static const FontOrientation orientations[] =;

class FontFeaturesByOrientationTest
    : public FontFeaturesTest,
      public testing::WithParamInterface<FontOrientation> {};

INSTANTIATE_TEST_SUITE_P();

// Test 'chws' or 'vchw' is on by default.
TEST_P(FontFeaturesByOrientationTest, EastAsianContextualSpacingOnByDefault) {}

// If author opted-in or opted-out, it should be honored.
TEST_P(FontFeaturesByOrientationTest,
       EastAsianContextualSpacingHonorsFontFeatureSettings) {}

// Test glyph-width GPOS features that should not enable 'chws'/'vchw'.
TEST_P(FontFeaturesByOrientationTest,
       EastAsianContextualSpacingOffByFeatureSettings) {}

// Test the current behavior when multiple glyph-width GPOS features are set via
// `FontFeatureSettings`. Current |FontFeatures| does not resolve conflicts,
// just pass them all as specified to HarfBuzz.
TEST_P(FontFeaturesByOrientationTest, MultipleGlyphWidthGPOS) {}

}  // namespace

}  // namespace blink