| OLD | NEW |
| 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 test.runner.hack_load_vm_file_hook; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 | 6 |
| 9 import '../backend/metadata.dart'; | 7 import '../backend/metadata.dart'; |
| 10 import 'configuration.dart'; | 8 import 'configuration.dart'; |
| 11 import 'runner_suite.dart'; | 9 import 'runner_suite.dart'; |
| 12 | 10 |
| 13 typedef Future<RunnerSuite> LoadVMFileHook(String path, Metadata metadata, | 11 typedef Future<RunnerSuite> LoadVMFileHook(String path, Metadata metadata, |
| 14 Configuration config); | 12 Configuration config); |
| 15 | 13 |
| 16 /// **Do not set or use this function without express permission from the test | 14 /// **Do not set or use this function without express permission from the test |
| 17 /// package authors**. | 15 /// package authors**. |
| 18 /// | 16 /// |
| 19 /// A function that overrides the loader's default behavior for loading test | 17 /// A function that overrides the loader's default behavior for loading test |
| 20 /// suites on the Dart VM. This function takes the path to the file, the | 18 /// suites on the Dart VM. This function takes the path to the file, the |
| 21 /// file's metadata, and the test runner's configuration and returns a | 19 /// file's metadata, and the test runner's configuration and returns a |
| 22 /// [RunnerSuite] for that file. | 20 /// [RunnerSuite] for that file. |
| 23 LoadVMFileHook loadVMFileHook; | 21 LoadVMFileHook loadVMFileHook; |
| OLD | NEW |