5#include <Foundation/Foundation.h>
7#include "flutter/fml/platform/darwin/string_range_sanitization.h"
8#include "gtest/gtest.h"
10TEST(StringRangeSanitizationTest, CanHandleUnicode) {
13 EXPECT_EQ(
result.length, 2UL);
16TEST(StringRangeSanitizationTest, HandlesInvalidRanges) {
17 auto ns_not_found =
static_cast<unsigned long>(NSNotFound);
26TEST(StringRangeSanitizationTest, CanHandleUnicodeRange) {
32TEST(StringRangeSanitizationTest, HandlesEndOfRange) {
NSRange RangeForCharacterAtIndex(NSString *text, NSUInteger index)
NSRange RangeForCharactersInRange(NSString *text, NSRange range)
TEST(StringRangeSanitizationTest, CanHandleUnicode)