Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1599)

Unified Diff: pkg/analyzer/test/src/summary/flat_buffers_test.dart

Issue 1574683002: Include addBool/BoolReader into FlatBuffers. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove debug output. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 9ad562ddf04cf375f036f2646f1d853f4964a313..d4a4676dfe614e409328604a9905d6c764a5279b 100644
--- a/pkg/analyzer/test/src/summary/flat_buffers_test.dart
+++ b/pkg/analyzer/test/src/summary/flat_buffers_test.dart
@@ -114,19 +114,21 @@ class BuilderTest {
Builder builder = new Builder(initialSize: 0);
Offset<String> stringOffset = builder.writeString('12345');
builder.startTable();
- builder.addInt8(0, 10);
- builder.addInt32(1, 20);
- builder.addOffset(2, stringOffset);
- builder.addInt32(3, 40);
+ builder.addBool(0, true);
+ builder.addInt8(1, 10);
+ builder.addInt32(2, 20);
+ builder.addOffset(3, stringOffset);
+ builder.addInt32(4, 40);
Offset offset = builder.endTable();
byteList = builder.finish(offset);
}
// read and verify
BufferPointer object = new BufferPointer.fromBytes(byteList).derefObject();
- expect(const Int8Reader().vTableGet(object, 0), 10);
- expect(const Int32Reader().vTableGet(object, 1), 20);
- expect(const StringReader().vTableGet(object, 2), '12345');
- expect(const Int32Reader().vTableGet(object, 3), 40);
+ expect(const BoolReader().vTableGet(object, 0), true);
+ expect(const Int8Reader().vTableGet(object, 1), 10);
+ expect(const Int32Reader().vTableGet(object, 2), 20);
+ expect(const StringReader().vTableGet(object, 3), '12345');
+ expect(const Int32Reader().vTableGet(object, 4), 40);
}
void test_writeList_ofInt32() {

Powered by Google App Engine
This is Rietveld 408576698