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

Side by Side Diff: pkg/analyzer/test/src/dart/analysis/driver_test.dart

Issue 2883633002: Extract PerformanceLogger from AnalysisDriver. (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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 analyzer.test.driver; 5 library analyzer.test.driver;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 11 matching lines...) Expand all
22 import 'package:analyzer/src/dart/element/element.dart'; 22 import 'package:analyzer/src/dart/element/element.dart';
23 import 'package:analyzer/src/error/codes.dart'; 23 import 'package:analyzer/src/error/codes.dart';
24 import 'package:analyzer/src/generated/engine.dart' show AnalysisOptionsImpl; 24 import 'package:analyzer/src/generated/engine.dart' show AnalysisOptionsImpl;
25 import 'package:analyzer/src/generated/resolver.dart' show ResolverErrorCode; 25 import 'package:analyzer/src/generated/resolver.dart' show ResolverErrorCode;
26 import 'package:analyzer/src/generated/sdk.dart'; 26 import 'package:analyzer/src/generated/sdk.dart';
27 import 'package:analyzer/src/generated/source.dart'; 27 import 'package:analyzer/src/generated/source.dart';
28 import 'package:analyzer/src/summary/idl.dart'; 28 import 'package:analyzer/src/summary/idl.dart';
29 import 'package:analyzer/src/summary/package_bundle_reader.dart'; 29 import 'package:analyzer/src/summary/package_bundle_reader.dart';
30 import 'package:convert/convert.dart'; 30 import 'package:convert/convert.dart';
31 import 'package:crypto/crypto.dart'; 31 import 'package:crypto/crypto.dart';
32 import 'package:front_end/src/base/performace_logger.dart';
32 import 'package:front_end/src/incremental/byte_store.dart'; 33 import 'package:front_end/src/incremental/byte_store.dart';
33 import 'package:test/test.dart'; 34 import 'package:test/test.dart';
34 import 'package:test_reflective_loader/test_reflective_loader.dart'; 35 import 'package:test_reflective_loader/test_reflective_loader.dart';
35 import 'package:typed_mock/typed_mock.dart'; 36 import 'package:typed_mock/typed_mock.dart';
36 37
37 import '../../../utils.dart'; 38 import '../../../utils.dart';
38 import '../../context/mock_sdk.dart'; 39 import '../../context/mock_sdk.dart';
39 import 'base.dart'; 40 import 'base.dart';
40 41
41 main() { 42 main() {
(...skipping 2758 matching lines...) Expand 10 before | Expand all | Expand 10 after
2800 var path = _p('/test.dart'); 2801 var path = _p('/test.dart');
2801 expect(() { 2802 expect(() {
2802 driver.removeFile(path); 2803 driver.removeFile(path);
2803 }, throwsStateError); 2804 }, throwsStateError);
2804 } 2805 }
2805 2806
2806 String _p(String path) => provider.convertPath(path); 2807 String _p(String path) => provider.convertPath(path);
2807 } 2808 }
2808 2809
2809 class _SourceMock extends TypedMock implements Source {} 2810 class _SourceMock extends TypedMock implements Source {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698