chromium/third_party/blink/renderer/platform/text/character_test.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "third_party/blink/renderer/platform/text/character.h"

#include <ubidi_props.h>

#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/text/emoji_segmentation_category.h"
#include "third_party/blink/renderer/platform/text/emoji_segmentation_category_inline_header.h"
#include "third_party/blink/renderer/platform/wtf/text/character_names.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"

namespace blink {

testing::AssertionResult IsCJKIdeographOrSymbolWithMessage(UChar32 codepoint) {}

// Test Unicode-derived functions work as intended.
// These functions may need to be adjusted if Unicode changes.
TEST(CharacterTest, Derived) {}

static void TestSpecificUChar32RangeIdeograph(UChar32 range_start,
                                              UChar32 range_end,
                                              bool before = true,
                                              bool after = true) {}

TEST(CharacterTest, TestIsCJKIdeograph) {}

static void TestSpecificUChar32RangeIdeographSymbol(UChar32 range_start,
                                                    UChar32 range_end) {}

TEST(CharacterTest, TestIsCJKIdeographOrSymbol) {}

TEST(CharacterTest, HanKerning) {}

TEST(CharacterTest, CanTextDecorationSkipInk) {}

TEST(CharacterTest, TestEmojiTextDefault) {}

TEST(CharacterTest, TestEmojiEmojiDefault) {}

TEST(CharacterTest, EmojificationV11) {}

TEST(CharacterTest, TestEmojiModifierBase) {}

TEST(CharacterTest, TestEmoji40Data) {}

TEST(CharacterTest, LineBreakAndQuoteNotEmoji) {}

TEST(CharacterTest, Truncation) {}

TEST(CharacterTest, IsBidiControl) {}

TEST(CharacterTest, IsNonCharacter) {}

TEST(CharacterTest, TransformedIsUprightInMixedVertical) {}

TEST(CharacterTest, IsVerticalMathCharacter) {}

TEST(CharacterTest, ExtendedPictographic) {}

TEST(CharacterTest, EmojiComponents) {}

// Ensure that the iterator forwarding in SymbolsIterator is not
// skipping any other categories that would be computed for the same cursor
// position and codepoint.
TEST(CharacterTest, MaybeEmojiPresentationNoIllegalShortcut) {}

TEST(CharacterTest, TestIsStandardizedVariationSequence) {}

TEST(CharacterTest, TestIsEmojiVariationSequence) {}

TEST(CharacterTest, TestIsIdeographicVariationSequence) {}

}  // namespace blink