#include "ui/base/ime/linux/input_method_auralinux.h"
#include <stddef.h>
#include <memory>
#include <optional>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/singleton.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/ime/dummy_text_input_client.h"
#include "ui/base/ime/ime_key_event_dispatcher.h"
#include "ui/base/ime/init/input_method_initializer.h"
#include "ui/base/ime/linux/linux_input_method_context_factory.h"
#include "ui/base/ime/text_input_client.h"
#include "ui/base/ime/virtual_keyboard_controller_stub.h"
#include "ui/events/event.h"
#include "ui/events/keycodes/dom/dom_code.h"
#include "ui/events/ozone/events_ozone.h"
namespace ui {
namespace {
const char16_t kActionCommit = …;
const char16_t kActionCompositionStart = …;
const char16_t kActionCompositionUpdate = …;
const char16_t kActionCompositionEnd = …;
class TestResult { … };
class LinuxInputMethodContextForTesting : public LinuxInputMethodContext { … };
class InputMethodDelegateForTesting : public ImeKeyEventDispatcher { … };
class TextInputClientForTesting : public DummyTextInputClient { … };
class InputMethodAuraLinuxTest : public testing::Test { … };
TEST_F(InputMethodAuraLinuxTest, BasicSyncModeTest) { … }
TEST_F(InputMethodAuraLinuxTest, BasicAsyncModeTest) { … }
TEST_F(InputMethodAuraLinuxTest, IBusUSTest) { … }
TEST_F(InputMethodAuraLinuxTest, IBusPinyinTest) { … }
TEST_F(InputMethodAuraLinuxTest, FcitxPinyinTest) { … }
TEST_F(InputMethodAuraLinuxTest, Fcitx5PinyinTest) { … }
TEST_F(InputMethodAuraLinuxTest, JapaneseCommit) { … }
TEST_F(InputMethodAuraLinuxTest, EmptyCommit) { … }
void DeadKeyTest(TextInputType text_input_type,
InputMethodAuraLinux* input_method_auralinux,
LinuxInputMethodContextForTesting* context,
TestResult* test_result) { … }
TEST_F(InputMethodAuraLinuxTest, DeadKeyTest) { … }
TEST_F(InputMethodAuraLinuxTest, DeadKeyTestTypeNone) { … }
TEST_F(InputMethodAuraLinuxTest, MockWaylandEventsTest) { … }
TEST_F(InputMethodAuraLinuxTest, MultiCommitsTest) { … }
TEST_F(InputMethodAuraLinuxTest, MixedCompositionAndCommitTest) { … }
TEST_F(InputMethodAuraLinuxTest, CompositionEndWithoutCommitTest) { … }
TEST_F(InputMethodAuraLinuxTest, CompositionEndWithEmptyCommitTest) { … }
TEST_F(InputMethodAuraLinuxTest, CompositionEndWithCommitTest) { … }
TEST_F(InputMethodAuraLinuxTest, CompositionUpdateWithCommitTest) { … }
TEST_F(InputMethodAuraLinuxTest, MixedAsyncAndSyncTest) { … }
TEST_F(InputMethodAuraLinuxTest, MixedSyncAndAsyncTest) { … }
TEST_F(InputMethodAuraLinuxTest, ReleaseKeyTest) { … }
TEST_F(InputMethodAuraLinuxTest, ReleaseKeyTest_PeekKey) { … }
TEST_F(InputMethodAuraLinuxTest, SurroundingText_NoSelectionTest) { … }
TEST_F(InputMethodAuraLinuxTest, SurroundingText_SelectionTest) { … }
TEST_F(InputMethodAuraLinuxTest, SurroundingText_NoCompositionTest) { … }
TEST_F(InputMethodAuraLinuxTest, SurroundingText_CompositionTest) { … }
TEST_F(InputMethodAuraLinuxTest, SurroundingText_PartialText) { … }
TEST_F(InputMethodAuraLinuxTest, SetPreeditRegionSingleCharTest) { … }
TEST_F(InputMethodAuraLinuxTest, SetPreeditRegionCompositionEndTest) { … }
TEST_F(InputMethodAuraLinuxTest, OnSetVirtualKeyboardOccludedBounds) { … }
TEST_F(InputMethodAuraLinuxTest, OnConfirmCompositionText) { … }
TEST_F(InputMethodAuraLinuxTest, OnInsertImage) { … }
TEST_F(InputMethodAuraLinuxTest, GetVirtualKeyboardController) { … }
TEST_F(InputMethodAuraLinuxTest, SetContentTypeWithUpdateFocus) { … }
TEST_F(InputMethodAuraLinuxTest, CanComposeInline) { … }
TEST_F(InputMethodAuraLinuxTest, UpdateCompositionIfTextSelected) { … }
}
}