| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.generated.sdk_test; | 5 library analyzer.test.generated.sdk_test; |
| 6 | 6 |
| 7 import 'package:analyzer/src/generated/engine.dart'; | 7 import 'package:analyzer/src/generated/engine.dart'; |
| 8 import 'package:analyzer/src/generated/sdk.dart'; | 8 import 'package:analyzer/src/generated/sdk.dart'; |
| 9 import 'package:test/test.dart'; | 9 import 'package:test/test.dart'; |
| 10 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 10 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 11 | 11 |
| 12 import '../src/context/mock_sdk.dart'; | 12 import '../src/context/mock_sdk.dart'; |
| 13 import '../utils.dart'; | |
| 14 import 'test_support.dart'; | 13 import 'test_support.dart'; |
| 15 | 14 |
| 16 main() { | 15 main() { |
| 17 initializeTestEnvironment(); | |
| 18 defineReflectiveSuite(() { | 16 defineReflectiveSuite(() { |
| 19 defineReflectiveTests(DartSdkManagerTest); | 17 defineReflectiveTests(DartSdkManagerTest); |
| 20 defineReflectiveTests(SdkDescriptionTest); | 18 defineReflectiveTests(SdkDescriptionTest); |
| 21 }); | 19 }); |
| 22 } | 20 } |
| 23 | 21 |
| 24 @reflectiveTest | 22 @reflectiveTest |
| 25 class DartSdkManagerTest extends EngineTestCase { | 23 class DartSdkManagerTest extends EngineTestCase { |
| 26 void test_anySdk() { | 24 void test_anySdk() { |
| 27 DartSdkManager manager = | 25 DartSdkManager manager = |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 } | 117 } |
| 120 | 118 |
| 121 void test_equals_samePaths_sameOptions_single() { | 119 void test_equals_samePaths_sameOptions_single() { |
| 122 String path = '/a/b/c'; | 120 String path = '/a/b/c'; |
| 123 AnalysisOptions options = new AnalysisOptionsImpl(); | 121 AnalysisOptions options = new AnalysisOptionsImpl(); |
| 124 SdkDescription left = new SdkDescription(<String>[path], options); | 122 SdkDescription left = new SdkDescription(<String>[path], options); |
| 125 SdkDescription right = new SdkDescription(<String>[path], options); | 123 SdkDescription right = new SdkDescription(<String>[path], options); |
| 126 expect(left == right, isTrue); | 124 expect(left == right, isTrue); |
| 127 } | 125 } |
| 128 } | 126 } |
| OLD | NEW |