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 /** | 5 /** |
6 * A stress test for the analysis server. | 6 * A stress test for the analysis server. |
7 */ | 7 */ |
8 library analysis_server.test.stress.replay.replay; | 8 library analysis_server.test.stress.replay.replay; |
9 | 9 |
10 import 'dart:async'; | 10 import 'dart:async'; |
11 import 'dart:io'; | 11 import 'dart:io'; |
12 import 'dart:math' as math; | 12 import 'dart:math' as math; |
13 | 13 |
14 import 'package:analysis_server/plugin/protocol/protocol.dart'; | 14 import 'package:analysis_server/plugin/protocol/protocol.dart'; |
15 import 'package:analyzer/dart/ast/token.dart'; | 15 import 'package:analyzer/dart/ast/token.dart'; |
| 16 import 'package:analyzer/error/listener.dart' as error; |
16 import 'package:analyzer/src/dart/scanner/reader.dart'; | 17 import 'package:analyzer/src/dart/scanner/reader.dart'; |
17 import 'package:analyzer/src/dart/scanner/scanner.dart'; | 18 import 'package:analyzer/src/dart/scanner/scanner.dart'; |
18 import 'package:analyzer/src/generated/error.dart' as error; | |
19 import 'package:analyzer/src/generated/java_engine.dart'; | 19 import 'package:analyzer/src/generated/java_engine.dart'; |
20 import 'package:analyzer/src/generated/source.dart'; | 20 import 'package:analyzer/src/generated/source.dart'; |
21 import 'package:analyzer/src/util/glob.dart'; | 21 import 'package:analyzer/src/util/glob.dart'; |
22 import 'package:args/args.dart'; | 22 import 'package:args/args.dart'; |
23 import 'package:path/path.dart' as path; | 23 import 'package:path/path.dart' as path; |
24 | 24 |
25 import '../utilities/git.dart'; | 25 import '../utilities/git.dart'; |
26 import '../utilities/server.dart'; | 26 import '../utilities/server.dart'; |
27 import 'operation.dart'; | 27 import 'operation.dart'; |
28 | 28 |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 minutes -= hours * 60; | 637 minutes -= hours * 60; |
638 | 638 |
639 if (hours > 0) { | 639 if (hours > 0) { |
640 return '$hours:$minutes:$seconds.$milliseconds'; | 640 return '$hours:$minutes:$seconds.$milliseconds'; |
641 } else if (minutes > 0) { | 641 } else if (minutes > 0) { |
642 return '$minutes:$seconds.$milliseconds'; | 642 return '$minutes:$seconds.$milliseconds'; |
643 } | 643 } |
644 return '$seconds.$milliseconds'; | 644 return '$seconds.$milliseconds'; |
645 } | 645 } |
646 } | 646 } |
OLD | NEW |