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

Side by Side Diff: pkg/analysis_server/test/stress/replay/replay.dart

Issue 2879273002: Make server use the common protocol classes (Closed)
Patch Set: Created 3 years, 7 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 /** 5 /**
6 * A stress test for the analysis server. 6 * A stress test for the analysis server.
7 */ 7 */
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:io'; 9 import 'dart:io';
10 import 'dart:math' as math; 10 import 'dart:math' as math;
11 11
12 import 'package:analysis_server/protocol/protocol_generated.dart'; 12 import 'package:analysis_server/protocol/protocol_generated.dart';
13 import 'package:analyzer/dart/ast/token.dart'; 13 import 'package:analyzer/dart/ast/token.dart';
14 import 'package:analyzer/error/listener.dart' as error; 14 import 'package:analyzer/error/listener.dart' as error;
15 import 'package:analyzer/src/dart/scanner/reader.dart'; 15 import 'package:analyzer/src/dart/scanner/reader.dart';
16 import 'package:analyzer/src/dart/scanner/scanner.dart'; 16 import 'package:analyzer/src/dart/scanner/scanner.dart';
17 import 'package:analyzer/src/generated/java_engine.dart'; 17 import 'package:analyzer/src/generated/java_engine.dart';
18 import 'package:analyzer/src/generated/source.dart'; 18 import 'package:analyzer/src/generated/source.dart';
19 import 'package:analyzer/src/util/glob.dart'; 19 import 'package:analyzer/src/util/glob.dart';
20 import 'package:analyzer_plugin/protocol/protocol_common.dart';
20 import 'package:args/args.dart'; 21 import 'package:args/args.dart';
21 import 'package:path/path.dart' as path; 22 import 'package:path/path.dart' as path;
22 23
23 import '../utilities/git.dart'; 24 import '../utilities/git.dart';
24 import '../utilities/logger.dart'; 25 import '../utilities/logger.dart';
25 import '../utilities/server.dart'; 26 import '../utilities/server.dart';
26 import 'operation.dart'; 27 import 'operation.dart';
27 28
28 /** 29 /**
29 * Run the simulation based on the given command-line [arguments]. 30 * Run the simulation based on the given command-line [arguments].
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 minutes -= hours * 60; 698 minutes -= hours * 60;
698 699
699 if (hours > 0) { 700 if (hours > 0) {
700 return '$hours:$minutes:$seconds.$milliseconds'; 701 return '$hours:$minutes:$seconds.$milliseconds';
701 } else if (minutes > 0) { 702 } else if (minutes > 0) {
702 return '$minutes:$seconds.$milliseconds'; 703 return '$minutes:$seconds.$milliseconds';
703 } 704 }
704 return '$seconds.$milliseconds'; 705 return '$seconds.$milliseconds';
705 } 706 }
706 } 707 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/src/plugin/result_merger_test.dart ('k') | pkg/analysis_server/test/stress/utilities/server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698