47TEST(FlutterJSONCodec, ThrowsOnInvalidEncode) {
48 NSString*
value = [[NSString alloc] initWithBytes:
"\xdf\xff"
50 encoding:NSUTF16StringEncoding];
52 EXPECT_EXIT([codec
encode:
value], testing::KilledBySignal(SIGABRT),
"failed to convert to UTF8");