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

Side by Side Diff: pkg/analysis_server/test/analysis/update_content_test.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 library test.analysis.updateContent;
6
7 import 'package:analysis_server/protocol/protocol.dart'; 5 import 'package:analysis_server/protocol/protocol.dart';
8 import 'package:analysis_server/protocol/protocol_generated.dart'; 6 import 'package:analysis_server/protocol/protocol_generated.dart';
9 import 'package:analysis_server/src/analysis_server.dart'; 7 import 'package:analysis_server/src/analysis_server.dart';
10 import 'package:analysis_server/src/constants.dart'; 8 import 'package:analysis_server/src/constants.dart';
11 import 'package:analysis_server/src/services/index/index.dart'; 9 import 'package:analysis_server/src/services/index/index.dart';
12 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
13 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; 11 import 'package:analyzer/dart/ast/standard_resolution_map.dart';
14 import 'package:analyzer/file_system/file_system.dart'; 12 import 'package:analyzer/file_system/file_system.dart';
15 import 'package:analyzer/src/generated/engine.dart'; 13 import 'package:analyzer/src/generated/engine.dart';
16 import 'package:analyzer/src/generated/source.dart'; 14 import 'package:analyzer/src/generated/source.dart';
17 import 'package:analyzer_plugin/protocol/protocol_common.dart' as plugin; 15 import 'package:analyzer_plugin/protocol/protocol_common.dart' as plugin;
16 import 'package:analyzer_plugin/protocol/protocol_common.dart';
18 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin; 17 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin;
19 import 'package:test/test.dart'; 18 import 'package:test/test.dart';
20 import 'package:test_reflective_loader/test_reflective_loader.dart'; 19 import 'package:test_reflective_loader/test_reflective_loader.dart';
21 import 'package:typed_mock/typed_mock.dart'; 20 import 'package:typed_mock/typed_mock.dart';
22 21
23 import '../analysis_abstract.dart'; 22 import '../analysis_abstract.dart';
24 23
25 main() { 24 main() {
26 defineReflectiveSuite(() { 25 defineReflectiveSuite(() {
27 defineReflectiveTests(UpdateContentTest); 26 defineReflectiveTests(UpdateContentTest);
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 348
350 @override 349 @override
351 bool matches(arg) { 350 bool matches(arg) {
352 return arg is CompilationUnit && 351 return arg is CompilationUnit &&
353 resolutionMap.elementDeclaredByCompilationUnit(arg).source.fullName == 352 resolutionMap.elementDeclaredByCompilationUnit(arg).source.fullName ==
354 file; 353 file;
355 } 354 }
356 } 355 }
357 356
358 class _MockIndex extends TypedMock implements Index {} 357 class _MockIndex extends TypedMock implements Index {}
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/analysis/reanalyze_test.dart ('k') | pkg/analysis_server/test/analysis_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698