#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "ui/base/ime/character_composer.h"
#include <stdint.h>
#include <memory>
#include "base/containers/contains.h"
#include "base/strings/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/events/event.h"
#include "ui/events/event_constants.h"
#include "ui/events/event_utils.h"
#include "ui/events/keycodes/dom/dom_code.h"
#include "ui/events/keycodes/dom/dom_key.h"
#include "ui/events/keycodes/keyboard_code_conversion.h"
#include "ui/events/keycodes/keyboard_codes.h"
#include "ui/events/types/event_type.h"
ASCIIToUTF16;
namespace ui {
namespace {
const char16_t kAcute = …;
const char16_t kCombiningGrave = …;
const char16_t kCombiningAcute = …;
const char16_t kCombiningCircumflex = …;
const char16_t kCombiningHorn = …;
}
class CharacterComposerTest : public testing::Test { … };
TEST_F(CharacterComposerTest, InitialState) { … }
TEST_F(CharacterComposerTest, NormalKeyIsNotFiltered) { … }
TEST_F(CharacterComposerTest, PartiallyMatchingSequence) { … }
TEST_F(CharacterComposerTest, FullyMatchingSequences) { … }
TEST_F(CharacterComposerTest, FullyMatchingSequencesAfterMatchingFailure) { … }
TEST_F(CharacterComposerTest, ComposedCharacterIsClearedAfterReset) { … }
TEST_F(CharacterComposerTest, CompositionStateIsClearedAfterReset) { … }
TEST_F(CharacterComposerTest, KeySequenceCompositionPreeditDisabled) { … }
TEST_F(CharacterComposerTest, KeySequenceCompositionPreeditEnabled) { … }
TEST_F(CharacterComposerTest, MainTableIsCorrectlyOrdered) { … }
TEST_F(CharacterComposerTest, HexadecimalComposition) { … }
TEST_F(CharacterComposerTest, HexadecimalCompositionPreedit) { … }
TEST_F(CharacterComposerTest, HexadecimalCompositionWithNonHexKey) { … }
TEST_F(CharacterComposerTest, HexadecimalCompositionWithAdditionalModifiers) { … }
TEST_F(CharacterComposerTest, CancelHexadecimalComposition) { … }
TEST_F(CharacterComposerTest, HexadecimalCompositionWithBackspace) { … }
TEST_F(CharacterComposerTest, CancelHexadecimalCompositionWithBackspace) { … }
TEST_F(CharacterComposerTest,
HexadecimalCompositionPreeditWithModifierPressed) { … }
TEST_F(CharacterComposerTest, InvalidHexadecimalSequence) { … }
TEST_F(CharacterComposerTest, HexadecimalSequenceAndDeadKey) { … }
}