diff --git a/packages/flutter/test/services/message_codecs_test.dart b/packages/flutter/test/services/message_codecs_test.dart index e288522564..176971d22d 100644 --- a/packages/flutter/test/services/message_codecs_test.dart +++ b/packages/flutter/test/services/message_codecs_test.dart @@ -66,27 +66,27 @@ void main() { _checkEncoding( standard, -0x7fffffff - 1, - [3, 0x80, 0x00, 0x00, 0x00], + [3, 0x00, 0x00, 0x00, 0x80], ); _checkEncoding( standard, -0x7fffffff - 2, - [4, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xff, 0xff], + [4, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xff, 0xff, 0xff], ); _checkEncoding( standard, 0x7fffffff, - [3, 0x7f, 0xff, 0xff, 0xff], + [3, 0xff, 0xff, 0xff, 0x7f], ); _checkEncoding( standard, 0x7fffffff + 1, - [4, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00], + [4, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00], ); _checkEncoding( standard, -0x7fffffffffffffff - 1, - [4, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], + [4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80], ); _checkEncoding( standard, @@ -96,7 +96,7 @@ void main() { _checkEncoding( standard, 0x7fffffffffffffff, - [4, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff], + [4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f], ); _checkEncoding( standard, @@ -113,7 +113,7 @@ void main() { _checkEncoding( standard, new Uint8List(254), - [8, 254, 0, 254]..addAll(new List.filled(254, 0)), + [8, 254, 254, 0]..addAll(new List.filled(254, 0)), ); _checkEncoding( standard, @@ -123,7 +123,7 @@ void main() { _checkEncoding( standard, new Uint8List(0xffff + 1), - [8, 255, 0, 1, 0, 0]..addAll(new List.filled(0xffff + 1, 0)), + [8, 255, 0, 0, 1, 0]..addAll(new List.filled(0xffff + 1, 0)), ); }); test('should encode and decode simple messages', () { @@ -251,4 +251,4 @@ bool _deepEqualsMap(Map valueA, Map valueB) return false; } return true; -} \ No newline at end of file +}