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

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

Issue 376693002: Extract testing utilities into a separate package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 test.domain.search; 5 library test.domain.search;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/analysis_server.dart'; 9 import 'package:analysis_server/src/analysis_server.dart';
10 import 'package:analysis_server/src/constants.dart'; 10 import 'package:analysis_server/src/constants.dart';
11 import 'package:analysis_server/src/domain_search.dart'; 11 import 'package:analysis_server/src/domain_search.dart';
12 import 'package:analysis_server/src/protocol.dart'; 12 import 'package:analysis_server/src/protocol.dart';
13 import 'package:analysis_testing/mock_sdk.dart';
14 import 'package:analysis_testing/reflective_tests.dart';
13 import 'package:analyzer/file_system/memory_file_system.dart'; 15 import 'package:analyzer/file_system/memory_file_system.dart';
16 import 'package:analyzer/index/index.dart';
17 import 'package:analyzer/src/index/local_index.dart';
14 import 'package:unittest/unittest.dart'; 18 import 'package:unittest/unittest.dart';
15 19
16 import 'analysis_abstract.dart'; 20 import 'analysis_abstract.dart';
17 import 'mocks.dart'; 21 import 'mocks.dart';
18 import 'reflective_tests.dart';
19 import 'package:analyzer/src/index/local_index.dart';
20 import 'package:analyzer/index/index.dart';
21 22
22 main() { 23 main() {
23 groupSep = ' | '; 24 groupSep = ' | ';
24 group('SearchDomainHandler', () { 25 group('SearchDomainHandler', () {
25 runReflectiveTests(SearchDomainTest); 26 runReflectiveTests(SearchDomainTest);
26 }); 27 });
27 28
28 MockServerChannel serverChannel; 29 MockServerChannel serverChannel;
29 MemoryResourceProvider resourceProvider; 30 MemoryResourceProvider resourceProvider;
30 AnalysisServer server; 31 AnalysisServer server;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 if (location.element.name == 'AAA') { 112 if (location.element.name == 'AAA') {
112 hasClassAAA = true; 113 hasClassAAA = true;
113 } 114 }
114 } 115 }
115 expect(hasClassFunction, isTrue, reason: locations.toString()); 116 expect(hasClassFunction, isTrue, reason: locations.toString());
116 expect(hasClassAAA, isTrue, reason: locations.toString()); 117 expect(hasClassAAA, isTrue, reason: locations.toString());
117 }); 118 });
118 }); 119 });
119 } 120 }
120 } 121 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698