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

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

Issue 375693002: Move index/search to services. (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
« no previous file with comments | « pkg/analysis_server/test/analysis_abstract.dart ('k') | pkg/analysis_server/test/mocks.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_services/index/index.dart';
14 import 'package:analysis_services/index/local_memory_index.dart';
13 import 'package:analysis_testing/mock_sdk.dart'; 15 import 'package:analysis_testing/mock_sdk.dart';
14 import 'package:analysis_testing/reflective_tests.dart'; 16 import 'package:analysis_testing/reflective_tests.dart';
15 import 'package:analyzer/file_system/memory_file_system.dart'; 17 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';
18 import 'package:unittest/unittest.dart'; 18 import 'package:unittest/unittest.dart';
19 19
20 import 'analysis_abstract.dart'; 20 import 'analysis_abstract.dart';
21 import 'mocks.dart'; 21 import 'mocks.dart';
22 22
23 main() { 23 main() {
24 groupSep = ' | '; 24 groupSep = ' | ';
25 group('SearchDomainHandler', () { 25 group('SearchDomainHandler', () {
26 runReflectiveTests(SearchDomainTest); 26 runReflectiveTests(SearchDomainTest);
27 }); 27 });
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 request.setParameter(PATTERN, null); 71 request.setParameter(PATTERN, null);
72 var response = handler.handleRequest(request); 72 var response = handler.handleRequest(request);
73 // TODO(brianwilkerson) implement 73 // TODO(brianwilkerson) implement
74 //expect(response, isNull); 74 //expect(response, isNull);
75 }); 75 });
76 }); 76 });
77 } 77 }
78 78
79 @ReflectiveTestCase() 79 @ReflectiveTestCase()
80 class SearchDomainTest extends AbstractAnalysisTest { 80 class SearchDomainTest extends AbstractAnalysisTest {
81 LocalIndex index; 81 Index index;
82 82
83 @override 83 @override
84 Index createIndex() { 84 Index createIndex() {
85 return createLocalMemorySplitIndex(); 85 return createLocalMemoryIndex();
86 } 86 }
87 87
88 @override 88 @override
89 void setUp() { 89 void setUp() {
90 super.setUp(); 90 super.setUp();
91 index = server.index; 91 index = server.index;
92 createProject(); 92 createProject();
93 } 93 }
94 94
95 Future test_findTopLevelDeclarations() { 95 Future test_findTopLevelDeclarations() {
(...skipping 16 matching lines...) Expand all
112 if (location.element.name == 'AAA') { 112 if (location.element.name == 'AAA') {
113 hasClassAAA = true; 113 hasClassAAA = true;
114 } 114 }
115 } 115 }
116 expect(hasClassFunction, isTrue, reason: locations.toString()); 116 expect(hasClassFunction, isTrue, reason: locations.toString());
117 expect(hasClassAAA, isTrue, reason: locations.toString()); 117 expect(hasClassAAA, isTrue, reason: locations.toString());
118 }); 118 });
119 }); 119 });
120 } 120 }
121 } 121 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/analysis_abstract.dart ('k') | pkg/analysis_server/test/mocks.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698