| 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 import "dart:io"; | 5 import "dart:io"; |
| 6 import "dart:isolate"; | |
| 7 import "dart:async"; | 6 import "dart:async"; |
| 7 |
| 8 import "../../../tools/testing/dart/test_runner.dart"; | 8 import "../../../tools/testing/dart/test_runner.dart"; |
| 9 import "../../../tools/testing/dart/test_suite.dart"; | 9 import "../../../tools/testing/dart/test_suite.dart"; |
| 10 import "../../../tools/testing/dart/test_progress.dart" as progress; | 10 import '../../../tools/testing/dart/lib/command.dart'; |
| 11 import "../../../tools/testing/dart/status_file_parser.dart"; | 11 import "../../../tools/testing/dart/lib/test_case.dart"; |
| 12 import "../../../tools/testing/dart/lib/test_progress.dart" as progress; |
| 13 import "../../../tools/testing/dart/lib/status_file_parser.dart"; |
| 12 import "../../../tools/testing/dart/test_options.dart"; | 14 import "../../../tools/testing/dart/test_options.dart"; |
| 13 import "process_test_util.dart"; | 15 import "process_test_util.dart"; |
| 14 | 16 |
| 15 final DEFAULT_TIMEOUT = 10; | 17 final DEFAULT_TIMEOUT = 10; |
| 16 final LONG_TIMEOUT = 30; | 18 final LONG_TIMEOUT = 30; |
| 17 | 19 |
| 18 class TestController { | 20 class TestController { |
| 19 static int numTests = 0; | 21 static int numTests = 0; |
| 20 static int numCompletedTests = 0; | 22 static int numCompletedTests = 0; |
| 21 | 23 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 break; | 145 break; |
| 144 case 'timeout': | 146 case 'timeout': |
| 145 // This process should be killed by the test after DEFAULT_TIMEOUT | 147 // This process should be killed by the test after DEFAULT_TIMEOUT |
| 146 new Timer(new Duration(hours: 42), (){ }); | 148 new Timer(new Duration(hours: 42), (){ }); |
| 147 break; | 149 break; |
| 148 default: | 150 default: |
| 149 throw "Unknown option ${arguments[0]} passed to test_runner_test"; | 151 throw "Unknown option ${arguments[0]} passed to test_runner_test"; |
| 150 } | 152 } |
| 151 } | 153 } |
| 152 } | 154 } |
| OLD | NEW |