| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 import 'package:expect/expect.dart'; | 5 import 'package:expect/expect.dart'; |
| 6 | 6 |
| 7 import 'package:immi/immi.dart'; | 7 import 'package:immi/immi.dart'; |
| 8 import 'package:immi_samples/sliding_window.dart'; | 8 import 'package:immi_samples/sliding_window.dart'; |
| 9 import 'package:service/struct.dart'; | 9 import 'package:service/struct.dart'; |
| 10 | 10 |
| 11 import 'package:immi_gen/dart/immi_service.dart'; | 11 import 'package:immi_gen/dart/immi_service.dart'; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 testDiff(Node previous, Node current) { | 81 testDiff(Node previous, Node current) { |
| 82 NodePatch patch = current.diff(previous); | 82 NodePatch patch = current.diff(previous); |
| 83 Expect.isNotNull(patch); | 83 Expect.isNotNull(patch); |
| 84 | 84 |
| 85 // Check that we can successfully serialize the data. | 85 // Check that we can successfully serialize the data. |
| 86 var manager = new ResourceManager(); | 86 var manager = new ResourceManager(); |
| 87 var mb = new MessageBuilder(24); | 87 var mb = new MessageBuilder(24); |
| 88 PatchDataBuilder builder = mb.initRoot(new PatchDataBuilder(), 16); | 88 PatchDataBuilder builder = mb.initRoot(new PatchDataBuilder(), 16); |
| 89 patch.serializeNode(builder.initNode(), manager); | 89 patch.serializeNode(builder.initNode(), manager); |
| 90 } | 90 } |
| OLD | NEW |