| Index: runtime/vm/snapshot_test.cc
 | 
| ===================================================================
 | 
| --- runtime/vm/snapshot_test.cc	(revision 38170)
 | 
| +++ runtime/vm/snapshot_test.cc	(working copy)
 | 
| @@ -2717,4 +2717,15 @@
 | 
|    Dart_ExitScope();
 | 
|  }
 | 
|  
 | 
| +
 | 
| +TEST_CASE(OmittedObjectEncodingLength) {
 | 
| +  StackZone zone(Isolate::Current());
 | 
| +  uint8_t* buffer;
 | 
| +  MessageWriter writer(&buffer, &zone_allocator);
 | 
| +  writer.WriteInlinedObjectHeader(kOmittedObjectId);
 | 
| +  // For performance, we'd like single-byte headers when ids are omitted.
 | 
| +  // If this starts failing, consider renumbering the snapshot ids.
 | 
| +  EXPECT_EQ(1, writer.BytesWritten());
 | 
| +}
 | 
| +
 | 
|  }  // namespace dart
 | 
| 
 |