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

Side by Side Diff: pkg/front_end/test/src/base/api_signature_test.dart

Issue 2875373002: Move flat_buffer and api_signature into front_end. (Closed)
Patch Set: Update summary format generator. Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/base/flat_buffers.dart ('k') | pkg/front_end/test/src/base/flat_buffers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698