OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 unittest.deprecated.configuration; | 5 library test.deprecated.configuration; |
6 | 6 |
7 import 'test_case.dart'; | 7 import 'test_case.dart'; |
8 | 8 |
9 /// This is a stub class used to preserve compatibility with unittest 0.11.*. | 9 /// This is a stub class used to preserve compatibility with unittest 0.11.*. |
10 /// | 10 /// |
11 /// It will be removed before the next version is released. | 11 /// It will be removed before the next version is released. |
12 @deprecated | 12 @deprecated |
13 class Configuration { | 13 class Configuration { |
14 Configuration(); | 14 Configuration(); |
15 Configuration.blank(); | 15 Configuration.blank(); |
16 | 16 |
17 final autoStart = true; | 17 final autoStart = true; |
18 Duration timeout = const Duration(minutes: 2); | 18 Duration timeout = const Duration(minutes: 2); |
19 void onInit() {} | 19 void onInit() {} |
20 void onStart() {} | 20 void onStart() {} |
21 void onTestStart(TestCase testCase) {} | 21 void onTestStart(TestCase testCase) {} |
22 void onTestResult(TestCase testCase) {} | 22 void onTestResult(TestCase testCase) {} |
23 void onTestResultChanged(TestCase testCase) {} | 23 void onTestResultChanged(TestCase testCase) {} |
24 void onLogMessage(TestCase testCase, String message) {} | 24 void onLogMessage(TestCase testCase, String message) {} |
25 void onDone(bool success) {} | 25 void onDone(bool success) {} |
26 void onSummary(int passed, int failed, int errors, List<TestCase> results, | 26 void onSummary(int passed, int failed, int errors, List<TestCase> results, |
27 String uncaughtError) {} | 27 String uncaughtError) {} |
28 } | 28 } |
OLD | NEW |