#include "third_party/blink/renderer/core/editing/ime/ime_text_span.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/ime/mojom/ime_types.mojom-blink.h"
namespace blink {
namespace {
ImeTextSpan CreateImeTextSpan(unsigned start_offset, unsigned end_offset) { … }
ImeTextSpan CreateImeTextSpan(
unsigned start_offset,
unsigned end_offset,
ui::mojom::ImeTextSpanUnderlineStyle underline_style) { … }
ImeTextSpan CreateImeTextSpan(unsigned start_offset,
unsigned end_offset,
bool interim_char_selection) { … }
TEST(ImeTextSpanTest, OneChar) { … }
TEST(ImeTextSpanTest, MultiChar) { … }
TEST(ImeTextSpanTest, ZeroLength) { … }
TEST(ImeTextSpanTest, ZeroLengthNonZeroStart) { … }
TEST(ImeTextSpanTest, EndBeforeStart) { … }
TEST(ImeTextSpanTest, LastChar) { … }
TEST(ImeTextSpanTest, LastCharEndBeforeStart) { … }
TEST(ImeTextSpanTest, LastCharEndBeforeStartZeroEnd) { … }
TEST(ImeTextSpanTest, UnderlineStyles) { … }
TEST(ImeTextSpanTest, InterimCharSelection) { … }
}
}