| Index: pkg/analyzer/test/src/summary/flat_buffers_test.dart
|
| diff --git a/pkg/analyzer/test/src/summary/flat_buffers_test.dart b/pkg/analyzer/test/src/summary/flat_buffers_test.dart
|
| index 31cd564cb53ec8f2b454ea12682ea576316fe370..7ceed57f38a70d8371422f3e1b6e1d1ab6ff81d6 100644
|
| --- a/pkg/analyzer/test/src/summary/flat_buffers_test.dart
|
| +++ b/pkg/analyzer/test/src/summary/flat_buffers_test.dart
|
| @@ -97,6 +97,7 @@ class BuilderTest {
|
| builder.addInt32(2, 20);
|
| builder.addOffset(3, stringOffset);
|
| builder.addInt32(4, 40);
|
| + builder.addUint32(5, 0x9ABCDEF0);
|
| Offset offset = builder.endTable();
|
| byteList = builder.finish(offset);
|
| }
|
| @@ -107,6 +108,7 @@ class BuilderTest {
|
| expect(const Int32Reader().vTableGet(object, 2), 20);
|
| expect(const StringReader().vTableGet(object, 3), '12345');
|
| expect(const Int32Reader().vTableGet(object, 4), 40);
|
| + expect(const Uint32Reader().vTableGet(object, 5), 0x9ABCDEF0);
|
| }
|
|
|
| void test_writeList_ofFloat64() {
|
| @@ -211,6 +213,20 @@ class BuilderTest {
|
| expect(items, contains('12345'));
|
| expect(items, contains('ABC'));
|
| }
|
| +
|
| + void test_writeList_ofUint32() {
|
| + List<int> byteList;
|
| + {
|
| + Builder builder = new Builder(initialSize: 0);
|
| + Offset offset = builder.writeListUint32(<int>[1, 2, 0x9ABCDEF0]);
|
| + byteList = builder.finish(offset);
|
| + }
|
| + // read and verify
|
| + BufferPointer root = new BufferPointer.fromBytes(byteList);
|
| + List<int> items = const ListReader<int>(const Uint32Reader()).read(root);
|
| + expect(items, hasLength(3));
|
| + expect(items, orderedEquals(<int>[1, 2, 0x9ABCDEF0]));
|
| + }
|
| }
|
|
|
| class StringListWrapperImpl {
|
|
|