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

Side by Side Diff: pkg/analyzer/test/src/summary/flat_buffers_test.dart

Issue 2391423003: Switch 'analyzer' to 'package:test' and test_reflective_loader ^0.1.0. (Closed)
Patch Set: Created 4 years, 2 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.flat_buffers_test; 5 library test.src.summary.flat_buffers_test;
6 6
7 import 'dart:typed_data'; 7 import 'dart:typed_data';
8 8
9 import 'package:analyzer/src/summary/flat_buffers.dart'; 9 import 'package:analyzer/src/summary/flat_buffers.dart';
10 import 'package:test/test.dart';
10 import 'package:test_reflective_loader/test_reflective_loader.dart'; 11 import 'package:test_reflective_loader/test_reflective_loader.dart';
11 import 'package:unittest/unittest.dart';
12 12
13 main() { 13 main() {
14 groupSep = ' | '; 14 defineReflectiveSuite(() {
15 defineReflectiveTests(BuilderTest); 15 defineReflectiveTests(BuilderTest);
16 });
16 } 17 }
17 18
18 @reflectiveTest 19 @reflectiveTest
19 class BuilderTest { 20 class BuilderTest {
20 void test_error_addInt32_withoutStartTable() { 21 void test_error_addInt32_withoutStartTable() {
21 Builder builder = new Builder(); 22 Builder builder = new Builder();
22 expect(() { 23 expect(() {
23 builder.addInt32(0, 0); 24 builder.addInt32(0, 0);
24 }, throwsStateError); 25 }, throwsStateError);
25 } 26 }
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 } 420 }
420 421
421 class TestPointReader extends TableReader<TestPointImpl> { 422 class TestPointReader extends TableReader<TestPointImpl> {
422 const TestPointReader(); 423 const TestPointReader();
423 424
424 @override 425 @override
425 TestPointImpl createObject(BufferContext object, int offset) { 426 TestPointImpl createObject(BufferContext object, int offset) {
426 return new TestPointImpl(object, offset); 427 return new TestPointImpl(object, offset);
427 } 428 }
428 } 429 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698