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

Unified Diff: lib/src/runner/loader.dart

Issue 1309493002: Add a hacky hook to override the loader behavior. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/runner/hack_load_vm_file_hook.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/loader.dart
diff --git a/lib/src/runner/loader.dart b/lib/src/runner/loader.dart
index 68f94d6f7fe031760200b3a01adfd584d5792030..abf22b94f957633d5a77205253ff16402deb2b72 100644
--- a/lib/src/runner/loader.dart
+++ b/lib/src/runner/loader.dart
@@ -20,8 +20,9 @@ import '../util/dart.dart' as dart;
import '../util/io.dart';
import '../util/remote_exception.dart';
import '../utils.dart';
-import 'configuration.dart';
import 'browser/server.dart';
+import 'configuration.dart';
+import 'hack_load_vm_file_hook.dart';
import 'load_exception.dart';
import 'load_suite.dart';
import 'parse_metadata.dart';
@@ -144,6 +145,12 @@ class Loader {
///
/// [metadata] is the suite-level metadata for the test.
Future<RunnerSuite> _loadVmFile(String path, Metadata metadata) async {
+ if (loadVMFileHook != null) {
+ var suite = await loadVMFileHook(path, metadata, _config);
+ _suites.add(suite);
+ return suite;
+ }
+
var receivePort = new ReceivePort();
var isolate;
« no previous file with comments | « lib/src/runner/hack_load_vm_file_hook.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698