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

Side by Side Diff: lib/src/runner/runner_test.dart

Issue 1704183002: pkg/test: cleanup imports (Closed) Base URL: https://github.com/dart-lang/test.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « lib/src/runner/runner_suite.dart ('k') | lib/src/runner/vm/catch_isolate_errors.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 import 'package:stream_channel/stream_channel.dart'; 5 import 'package:stream_channel/stream_channel.dart';
6 6
7 import '../backend/group.dart'; 7 import '../backend/group.dart';
8 import '../backend/live_test.dart'; 8 import '../backend/live_test.dart';
9 import '../backend/live_test_controller.dart'; 9 import '../backend/live_test_controller.dart';
10 import '../backend/metadata.dart'; 10 import '../backend/metadata.dart';
11 import '../backend/operating_system.dart'; 11 import '../backend/operating_system.dart';
12 import '../backend/state.dart'; 12 import '../backend/state.dart';
13 import '../backend/suite.dart'; 13 import '../backend/suite.dart';
14 import '../backend/test.dart'; 14 import '../backend/test.dart';
15 import '../backend/test_platform.dart'; 15 import '../backend/test_platform.dart';
16 import '../util/remote_exception.dart';
16 import '../utils.dart'; 17 import '../utils.dart';
17 import '../util/remote_exception.dart';
18 18
19 typedef StackTrace _MapTrace(StackTrace trace); 19 typedef StackTrace _MapTrace(StackTrace trace);
20 20
21 /// A test running remotely, controlled by a stream channel. 21 /// A test running remotely, controlled by a stream channel.
22 class RunnerTest extends Test { 22 class RunnerTest extends Test {
23 final String name; 23 final String name;
24 final Metadata metadata; 24 final Metadata metadata;
25 25
26 /// The channel used to communicate with the test's [IframeListener]. 26 /// The channel used to communicate with the test's [IframeListener].
27 final MultiChannel _channel; 27 final MultiChannel _channel;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 }, groups: groups); 84 }, groups: groups);
85 return controller.liveTest; 85 return controller.liveTest;
86 } 86 }
87 87
88 Test forPlatform(TestPlatform platform, {OperatingSystem os}) { 88 Test forPlatform(TestPlatform platform, {OperatingSystem os}) {
89 if (!metadata.testOn.evaluate(platform, os: os)) return null; 89 if (!metadata.testOn.evaluate(platform, os: os)) return null;
90 return new RunnerTest( 90 return new RunnerTest(
91 name, metadata.forPlatform(platform, os: os), _channel, _mapTrace); 91 name, metadata.forPlatform(platform, os: os), _channel, _mapTrace);
92 } 92 }
93 } 93 }
OLDNEW
« no previous file with comments | « lib/src/runner/runner_suite.dart ('k') | lib/src/runner/vm/catch_isolate_errors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698