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 test.backend.metadata; | |
6 | |
7 import 'dart:collection'; | 5 import 'dart:collection'; |
8 | 6 |
9 import 'package:collection/collection.dart'; | 7 import 'package:collection/collection.dart'; |
10 | 8 |
11 import '../frontend/skip.dart'; | 9 import '../frontend/skip.dart'; |
12 import '../frontend/timeout.dart'; | 10 import '../frontend/timeout.dart'; |
13 import '../utils.dart'; | 11 import '../utils.dart'; |
14 import 'operating_system.dart'; | 12 import 'operating_system.dart'; |
15 import 'platform_selector.dart'; | 13 import 'platform_selector.dart'; |
16 import 'test_platform.dart'; | 14 import 'test_platform.dart'; |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 _serializeTimeout(Timeout timeout) { | 249 _serializeTimeout(Timeout timeout) { |
252 if (timeout == Timeout.none) return 'none'; | 250 if (timeout == Timeout.none) return 'none'; |
253 return { | 251 return { |
254 'duration': timeout.duration == null | 252 'duration': timeout.duration == null |
255 ? null | 253 ? null |
256 : timeout.duration.inMicroseconds, | 254 : timeout.duration.inMicroseconds, |
257 'scaleFactor': timeout.scaleFactor | 255 'scaleFactor': timeout.scaleFactor |
258 }; | 256 }; |
259 } | 257 } |
260 } | 258 } |
OLD | NEW |