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

Side by Side Diff: pkg/analyzer/test/src/task/inputs_test.dart

Issue 2298913003: Pull in test_reflective_loader 0.0.4 and switch analyzer to it. (Closed)
Patch Set: Fixes for review comments. Created 4 years, 3 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 analyzer.test.src.task.inputs_test; 5 library analyzer.test.src.task.inputs_test;
6 6
7 import 'package:analyzer/src/task/inputs.dart'; 7 import 'package:analyzer/src/task/inputs.dart';
8 import 'package:analyzer/src/task/model.dart'; 8 import 'package:analyzer/src/task/model.dart';
9 import 'package:analyzer/task/model.dart'; 9 import 'package:analyzer/task/model.dart';
10 import 'package:test_reflective_loader/test_reflective_loader.dart';
10 import 'package:unittest/unittest.dart'; 11 import 'package:unittest/unittest.dart';
11 12
12 import '../../generated/test_support.dart'; 13 import '../../generated/test_support.dart';
13 import '../../reflective_tests.dart';
14 import '../../utils.dart'; 14 import '../../utils.dart';
15 15
16 main() { 16 main() {
17 initializeTestEnvironment(); 17 initializeTestEnvironment();
18 runReflectiveTests(ConstantTaskInputBuilderTest); 18 defineReflectiveTests(ConstantTaskInputBuilderTest);
19 runReflectiveTests(ConstantTaskInputTest); 19 defineReflectiveTests(ConstantTaskInputTest);
20 runReflectiveTests(ListTaskInputImplTest); 20 defineReflectiveTests(ListTaskInputImplTest);
21 runReflectiveTests(ListToListTaskInputTest); 21 defineReflectiveTests(ListToListTaskInputTest);
22 runReflectiveTests(ListToListTaskInputBuilderTest); 22 defineReflectiveTests(ListToListTaskInputBuilderTest);
23 runReflectiveTests(ListToMapTaskInputBuilderTest); 23 defineReflectiveTests(ListToMapTaskInputBuilderTest);
24 runReflectiveTests(ListToMapTaskInputTest); 24 defineReflectiveTests(ListToMapTaskInputTest);
25 runReflectiveTests(ObjectToListTaskInputBuilderTest); 25 defineReflectiveTests(ObjectToListTaskInputBuilderTest);
26 runReflectiveTests(ObjectToListTaskInputTest); 26 defineReflectiveTests(ObjectToListTaskInputTest);
27 runReflectiveTests(SimpleTaskInputTest); 27 defineReflectiveTests(SimpleTaskInputTest);
28 runReflectiveTests(SimpleTaskInputBuilderTest); 28 defineReflectiveTests(SimpleTaskInputBuilderTest);
29 runReflectiveTests(TopLevelTaskInputBuilderTest); 29 defineReflectiveTests(TopLevelTaskInputBuilderTest);
30 } 30 }
31 31
32 @reflectiveTest 32 @reflectiveTest
33 class ConstantTaskInputBuilderTest extends EngineTestCase { 33 class ConstantTaskInputBuilderTest extends EngineTestCase {
34 static final int value = 7; 34 static final int value = 7;
35 static final ConstantTaskInput<int> input = new ConstantTaskInput<int>(value); 35 static final ConstantTaskInput<int> input = new ConstantTaskInput<int>(value);
36 36
37 ConstantTaskInputBuilder builder; 37 ConstantTaskInputBuilder builder;
38 38
39 void setUp() { 39 void setUp() {
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 test_moveNext_withSet() { 1067 test_moveNext_withSet() {
1068 Map<String, TaskInput> inputDescriptors = {'one': input1}; 1068 Map<String, TaskInput> inputDescriptors = {'one': input1};
1069 TopLevelTaskInputBuilder builder = 1069 TopLevelTaskInputBuilder builder =
1070 new TopLevelTaskInputBuilder(inputDescriptors); 1070 new TopLevelTaskInputBuilder(inputDescriptors);
1071 expect(builder.moveNext(), true); 1071 expect(builder.moveNext(), true);
1072 builder.currentValue = 'value1'; 1072 builder.currentValue = 'value1';
1073 expect(builder.moveNext(), false); 1073 expect(builder.moveNext(), false);
1074 expect(builder.moveNext(), false); 1074 expect(builder.moveNext(), false);
1075 } 1075 }
1076 } 1076 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698