| 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 import 'dart:async'; | 5 import 'dart:async'; |
| 6 | 6 |
| 7 import 'package:async/async.dart'; | 7 import 'package:async/async.dart'; |
| 8 | 8 |
| 9 import '../backend/group.dart'; |
| 9 import '../backend/operating_system.dart'; | 10 import '../backend/operating_system.dart'; |
| 10 import '../backend/suite.dart'; | 11 import '../backend/suite.dart'; |
| 11 import '../backend/group.dart'; | |
| 12 import '../backend/test.dart'; | 12 import '../backend/test.dart'; |
| 13 import '../backend/test_platform.dart'; | 13 import '../backend/test_platform.dart'; |
| 14 import '../utils.dart'; | 14 import '../utils.dart'; |
| 15 import 'environment.dart'; | 15 import 'environment.dart'; |
| 16 | 16 |
| 17 /// A suite produced and consumed by the test runner that has runner-specific | 17 /// A suite produced and consumed by the test runner that has runner-specific |
| 18 /// logic and lifecycle management. | 18 /// logic and lifecycle management. |
| 19 /// | 19 /// |
| 20 /// This is separated from [Suite] because the backend library (which will | 20 /// This is separated from [Suite] because the backend library (which will |
| 21 /// eventually become its own package) is primarily for test code itself to use, | 21 /// eventually become its own package) is primarily for test code itself to use, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 _onDebuggingController.add(debugging); | 98 _onDebuggingController.add(debugging); |
| 99 } | 99 } |
| 100 | 100 |
| 101 /// The backing function for [suite.close]. | 101 /// The backing function for [suite.close]. |
| 102 Future _close() => _closeMemo.runOnce(() async { | 102 Future _close() => _closeMemo.runOnce(() async { |
| 103 _onDebuggingController.close(); | 103 _onDebuggingController.close(); |
| 104 if (_onClose != null) await _onClose(); | 104 if (_onClose != null) await _onClose(); |
| 105 }); | 105 }); |
| 106 final _closeMemo = new AsyncMemoizer(); | 106 final _closeMemo = new AsyncMemoizer(); |
| 107 } | 107 } |
| OLD | NEW |