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

Side by Side Diff: pkg/analyzer_plugin/test/plugin/mocks.dart

Issue 2993123002: Eliminate dependencies on pkg/front_end. (Closed)
Patch Set: Created 3 years, 4 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:collection'; 6 import 'dart:collection';
7 7
8 import 'package:analyzer/file_system/file_system.dart'; 8 import 'package:analyzer/file_system/file_system.dart';
9 import 'package:analyzer/src/dart/analysis/driver.dart'; 9 import 'package:analyzer/src/dart/analysis/driver.dart';
10 import 'package:analyzer/src/generated/engine.dart'; 10 import 'package:analyzer/src/generated/engine.dart';
11 import 'package:analyzer/src/generated/source.dart'; 11 import 'package:analyzer/src/generated/source.dart';
12 import 'package:analyzer_plugin/channel/channel.dart'; 12 import 'package:analyzer_plugin/channel/channel.dart';
13 import 'package:analyzer_plugin/plugin/plugin.dart'; 13 import 'package:analyzer_plugin/plugin/plugin.dart';
14 import 'package:analyzer_plugin/protocol/protocol.dart'; 14 import 'package:analyzer_plugin/protocol/protocol.dart';
15 import 'package:analyzer_plugin/protocol/protocol_generated.dart'; 15 import 'package:analyzer_plugin/protocol/protocol_generated.dart';
16 import 'package:analyzer_plugin/src/protocol/protocol_internal.dart'; 16 import 'package:analyzer_plugin/src/protocol/protocol_internal.dart';
17 import 'package:front_end/src/base/timestamped_data.dart'; 17 import 'package:analyzer/src/generated/timestamped_data.dart';
18 import 'package:test/test.dart'; 18 import 'package:test/test.dart';
19 19
20 class MockAnalysisDriver extends AnalysisDriver { 20 class MockAnalysisDriver extends AnalysisDriver {
21 @override 21 @override
22 Set<String> addedFiles = new HashSet<String>(); 22 Set<String> addedFiles = new HashSet<String>();
23 23
24 MockAnalysisDriver() 24 MockAnalysisDriver()
25 : super(new AnalysisDriverScheduler(null), null, null, null, null, null, 25 : super(new AnalysisDriverScheduler(null), null, null, null, null, null,
26 new SourceFactory([]), new AnalysisOptionsImpl()); 26 new SourceFactory([]), new AnalysisOptionsImpl());
27 27
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 @override 158 @override
159 Uri get uri => Uri.parse('package:test/test.dart'); 159 Uri get uri => Uri.parse('package:test/test.dart');
160 160
161 @override 161 @override
162 UriKind get uriKind => UriKind.PACKAGE_URI; 162 UriKind get uriKind => UriKind.PACKAGE_URI;
163 163
164 @override 164 @override
165 bool exists() => true; 165 bool exists() => true;
166 } 166 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698