| Index: mojom/mojom_parser/serialization/serialization_test.go
|
| diff --git a/mojom/mojom_parser/serialization/serialization_test.go b/mojom/mojom_parser/serialization/serialization_test.go
|
| index 9723a2ea36700d88b129cf7baa7eeeb5e2bcad50..49748a92c24d5e5a538c7d528b94bec3578b482a 100644
|
| --- a/mojom/mojom_parser/serialization/serialization_test.go
|
| +++ b/mojom/mojom_parser/serialization/serialization_test.go
|
| @@ -1009,6 +1009,19 @@ func TestSingleFileSerialization(t *testing.T) {
|
| continue
|
| }
|
|
|
| + // Serialize again and check for consistency.
|
| + bytes2, _, err := serialize(descriptor, false, c.lineAndcolumnNumbers, false)
|
| + if err != nil {
|
| + t.Errorf("Serialization error for %s: %s", c.fileName, err.Error())
|
| + continue
|
| + }
|
| +
|
| + if !reflect.DeepEqual(bytes, bytes2) {
|
| + t.Errorf("Inconsistent serialization for %s:\nbytes=%v\nbytes2=%v\n",
|
| + c.fileName, bytes, bytes2)
|
| + continue
|
| + }
|
| +
|
| // Deserialize
|
| decoder := bindings.NewDecoder(bytes, nil)
|
| fileGraph := mojom_files.MojomFileGraph{}
|
|
|