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

Side by Side Diff: pkg/analysis_server/benchmark/perf/completion_timing_tests.dart

Issue 2394683006: Switch analysis_server to use 'package:test'. (Closed)
Patch Set: Created 4 years, 2 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
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 library server.performance.analysis.timing; 5 library server.performance.analysis.timing;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'package:args/args.dart'; 10 import 'package:args/args.dart';
11 import 'package:unittest/unittest.dart'; 11 import 'package:test/test.dart';
12 12
13 import '../../test/utils.dart'; 13 import '../../test/utils.dart';
14 import 'performance_tests.dart'; 14 import 'performance_tests.dart';
15 15
16 /** 16 /**
17 * Pass in the directory of the source to be analyzed as option `--source`, 17 * Pass in the directory of the source to be analyzed as option `--source`,
18 * specify a priority file with `--priority` and an offset for completions 18 * specify a priority file with `--priority` and an offset for completions
19 * with a `--offset`. 19 * with a `--offset`.
20 */ 20 */
21 main(List<String> arguments) { 21 main(List<String> arguments) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 sendAnalysisSetPriorityFiles([priorityFile]); 75 sendAnalysisSetPriorityFiles([priorityFile]);
76 sendCompletionGetSuggestions(priorityFile, offset); 76 sendCompletionGetSuggestions(priorityFile, offset);
77 77
78 await analysisFinished; 78 await analysisFinished;
79 79
80 print('analysis completed in ${stopwatch.elapsed}'); 80 print('analysis completed in ${stopwatch.elapsed}');
81 print('completion received at : $timings'); 81 print('completion received at : $timings');
82 await shutdown(); 82 await shutdown();
83 } 83 }
84 } 84 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698