flutter/packages/flutter_tools/test/ios
Chris Bracken 6a42ed3f55
Decode syslog-encoded iOS logs (#14075)
Apple encodes syslog entries using a 7-bit encoding where input UTF-8 bytes
are encoded as follows:
1. 0x00 to 0x19: non-printing range. Some ignored, some encoded as <...>.
2. 0x20 to 0x7f: as-is, with the exception of 0x5c (backslash).
3. 0x5c (backslash): octal representation \134.
4. 0x80 to 0x9f: \M^x (using control-character notation for range 0x00 to 0x40).
5. 0xa0: octal representation \240.
6. 0xa1 to 0xf7: \M-x (where x is the input byte stripped of its high-order bit).
7. 0xf8 to 0xff: unused in 4-byte UTF-8.

As there doesn't appear to be a system tool to decode these strings, we
implement here in Dart. If we're unable to decode a string (e.g.
decoding results in an invalid UTF-8 string), we fall back to emitting
the log line as-is.
2018-01-12 15:12:26 -08:00
..
cocoapods_test.dart Revert pod install skip revert (#13774) 2017-12-27 07:30:31 -08:00
code_signing_test.dart Change async stubbing to use thenAnswer. (#13521) 2017-12-19 13:13:57 -08:00
devices_test.dart Decode syslog-encoded iOS logs (#14075) 2018-01-12 15:12:26 -08:00
ios_workflow_test.dart Clarify libimobiledevice installation status message (#12303) 2017-09-28 13:04:59 -07:00
mac_test.dart Change async stubbing to use thenAnswer. (#13521) 2017-12-19 13:13:57 -08:00
simulators_test.dart Fix simulator not printing to console lines with ) (#13920) 2018-01-05 11:34:05 -08:00
xcodeproj_test.dart Support for app flavors in flutter tooling, #11676 retake (#11734) 2017-08-23 10:55:35 +02:00