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

Side by Side Diff: lib/src/runner/vm/environment.dart

Issue 1414793015: Use the async package's CancelableOperation. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « lib/src/runner/environment.dart ('k') | lib/src/util/cancelable_future.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.vm.environment; 5 library test.runner.vm.environment;
6 6
7 import 'package:async/async.dart';
8
7 import '../environment.dart'; 9 import '../environment.dart';
8 import '../../util/cancelable_future.dart';
9 10
10 /// The environment for test suites loaded in an isolate in this Dart VM. 11 /// The environment for test suites loaded in an isolate in this Dart VM.
11 class VMEnvironment implements Environment { 12 class VMEnvironment implements Environment {
12 const VMEnvironment(); 13 const VMEnvironment();
13 14
14 Uri get observatoryUrl => throw new UnsupportedError( 15 Uri get observatoryUrl => throw new UnsupportedError(
15 "VMEnvironment.observatoryUrl is not currently supported."); 16 "VMEnvironment.observatoryUrl is not currently supported.");
16 17
17 Uri get remoteDebuggerUrl => throw new UnsupportedError( 18 Uri get remoteDebuggerUrl => throw new UnsupportedError(
18 "VMEnvironment.observatoryUrl is not supported."); 19 "VMEnvironment.observatoryUrl is not supported.");
19 20
20 CancelableFuture displayPause() => 21 CancelableOperation displayPause() =>
21 throw new UnsupportedError( 22 throw new UnsupportedError(
22 "The VM doesn't yet support Environment.displayPause."); 23 "The VM doesn't yet support Environment.displayPause.");
23 } 24 }
OLDNEW
« no previous file with comments | « lib/src/runner/environment.dart ('k') | lib/src/util/cancelable_future.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698