| 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 unittest.backend.live_test_controller; | 5 library test.backend.live_test_controller; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'package:stack_trace/stack_trace.dart'; | 10 import 'package:stack_trace/stack_trace.dart'; |
| 11 | 11 |
| 12 import '../utils.dart'; | 12 import '../utils.dart'; |
| 13 import 'live_test.dart'; | 13 import 'live_test.dart'; |
| 14 import 'state.dart'; | 14 import 'state.dart'; |
| 15 import 'suite.dart'; | 15 import 'suite.dart'; |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 Future _close() { | 165 Future _close() { |
| 166 if (_isClosed) return new Future.value(); | 166 if (_isClosed) return new Future.value(); |
| 167 _onStateChangeController.close(); | 167 _onStateChangeController.close(); |
| 168 _onErrorController.close(); | 168 _onErrorController.close(); |
| 169 if (!completer.isCompleted) completer.complete(); | 169 if (!completer.isCompleted) completer.complete(); |
| 170 | 170 |
| 171 if (_onClose != null) return new Future.sync(_onClose); | 171 if (_onClose != null) return new Future.sync(_onClose); |
| 172 return new Future.value(); | 172 return new Future.value(); |
| 173 } | 173 } |
| 174 } | 174 } |
| OLD | NEW |