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

Unified Diff: pkg/unittest/lib/vm_config.dart

Issue 12770017: pkg/unittest: config refactor (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: per siggi's recomendations Created 7 years, 9 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
Index: pkg/unittest/lib/vm_config.dart
diff --git a/pkg/unittest/lib/vm_config.dart b/pkg/unittest/lib/vm_config.dart
index 1f4ce0da24e07299f178e9743bae017c985fb712..4707dda0e041bbf17f10768193116bcb7fbb34e1 100644
--- a/pkg/unittest/lib/vm_config.dart
+++ b/pkg/unittest/lib/vm_config.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -9,7 +9,6 @@ library unittest_vm_config;
import 'dart:io';
import 'unittest.dart';
-import 'package:meta/meta.dart';
class VMConfiguration extends Configuration {
void onDone(bool success) {
@@ -25,9 +24,7 @@ class VMConfiguration extends Configuration {
}
void useVMConfiguration() {
- if (config != null) return;
- configure(new VMConfiguration());
+ config = _singleton;
}
-@deprecated
-void useVmConfiguration() => useVMConfiguration();
+final _singleton = new VMConfiguration();

Powered by Google App Engine
This is Rietveld 408576698