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

Side by Side Diff: pkg/analysis_server/test/mocks.dart

Issue 1398293002: Move the wire protocol support into the public API (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add missed files Created 5 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 mocks; 5 library mocks;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 @MirrorsUsed(targets: 'mocks', override: '*') 9 @MirrorsUsed(targets: 'mocks', override: '*')
10 import 'dart:mirrors'; 10 import 'dart:mirrors';
11 11
12 import 'package:analysis_server/plugin/protocol/protocol.dart'
13 hide Element, ElementKind;
12 import 'package:analysis_server/src/analysis_server.dart'; 14 import 'package:analysis_server/src/analysis_server.dart';
13 import 'package:analysis_server/src/channel/channel.dart'; 15 import 'package:analysis_server/src/channel/channel.dart';
14 import 'package:analysis_server/src/operation/operation.dart'; 16 import 'package:analysis_server/src/operation/operation.dart';
15 import 'package:analysis_server/src/operation/operation_analysis.dart'; 17 import 'package:analysis_server/src/operation/operation_analysis.dart';
16 import 'package:analysis_server/src/protocol.dart' hide Element, ElementKind;
17 import 'package:analyzer/file_system/file_system.dart' as resource; 18 import 'package:analyzer/file_system/file_system.dart' as resource;
18 import 'package:analyzer/file_system/memory_file_system.dart' as resource; 19 import 'package:analyzer/file_system/memory_file_system.dart' as resource;
19 import 'package:analyzer/source/package_map_provider.dart'; 20 import 'package:analyzer/source/package_map_provider.dart';
20 import 'package:analyzer/source/pub_package_map_provider.dart'; 21 import 'package:analyzer/source/pub_package_map_provider.dart';
21 import 'package:analyzer/src/generated/element.dart'; 22 import 'package:analyzer/src/generated/element.dart';
22 import 'package:analyzer/src/generated/engine.dart'; 23 import 'package:analyzer/src/generated/engine.dart';
23 import 'package:analyzer/src/generated/source.dart'; 24 import 'package:analyzer/src/generated/source.dart';
24 import 'package:typed_mock/typed_mock.dart'; 25 import 'package:typed_mock/typed_mock.dart';
25 import 'package:unittest/unittest.dart'; 26 import 'package:unittest/unittest.dart';
26 27
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 } 462 }
462 return mismatchDescription; 463 return mismatchDescription;
463 } 464 }
464 465
465 @override 466 @override
466 bool matches(item, Map matchState) { 467 bool matches(item, Map matchState) {
467 Response response = item; 468 Response response = item;
468 return response != null && response.id == _id && response.error == null; 469 return response != null && response.id == _id && response.error == null;
469 } 470 }
470 } 471 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698