| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library test.src.summary.api_signature_test; | |
| 6 | |
| 7 import 'package:analyzer/src/summary/api_signature.dart'; | |
| 8 import 'package:analyzer/src/summary/format.dart'; | 5 import 'package:analyzer/src/summary/format.dart'; |
| 9 import 'package:convert/convert.dart'; | 6 import 'package:convert/convert.dart'; |
| 10 import 'package:crypto/crypto.dart'; | 7 import 'package:crypto/crypto.dart'; |
| 8 import 'package:front_end/src/base/api_signature.dart'; |
| 11 import 'package:test/test.dart'; | 9 import 'package:test/test.dart'; |
| 12 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 10 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 13 | 11 |
| 14 main() { | 12 main() { |
| 15 defineReflectiveSuite(() { | 13 defineReflectiveSuite(() { |
| 16 defineReflectiveTests(ApiSignatureTest); | 14 defineReflectiveTests(ApiSignatureTest); |
| 17 }); | 15 }); |
| 18 } | 16 } |
| 19 | 17 |
| 20 @reflectiveTest | 18 @reflectiveTest |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 for (int i = 0; i < 100000; i++) { | 101 for (int i = 0; i < 100000; i++) { |
| 104 sig.addInt(i); | 102 sig.addInt(i); |
| 105 expectedResult.add(i % 0x100); | 103 expectedResult.add(i % 0x100); |
| 106 expectedResult.add((i ~/ 0x100) % 0x100); | 104 expectedResult.add((i ~/ 0x100) % 0x100); |
| 107 expectedResult.add((i ~/ 0x10000) % 0x100); | 105 expectedResult.add((i ~/ 0x10000) % 0x100); |
| 108 expectedResult.add((i ~/ 0x1000000) % 0x100); | 106 expectedResult.add((i ~/ 0x1000000) % 0x100); |
| 109 } | 107 } |
| 110 checkBytes(expectedResult); | 108 checkBytes(expectedResult); |
| 111 } | 109 } |
| 112 } | 110 } |
| OLD | NEW |