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

Unified Diff: pkg/analysis_server/test/search/type_hierarchy_test.dart

Issue 477323005: Use generated classes to create requests in analysis server unit tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/test/search/top_level_declarations_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/search/type_hierarchy_test.dart
diff --git a/pkg/analysis_server/test/search/type_hierarchy_test.dart b/pkg/analysis_server/test/search/type_hierarchy_test.dart
index 8042dba772ab4279148b7862d92af2df11809b3c..2382e5dd060dec4ee70814983a7c08e967358db2 100644
--- a/pkg/analysis_server/test/search/type_hierarchy_test.dart
+++ b/pkg/analysis_server/test/search/type_hierarchy_test.dart
@@ -8,6 +8,7 @@ import 'dart:async';
import 'package:analysis_server/src/constants.dart';
import 'package:analysis_server/src/protocol.dart';
+import 'package:analysis_server/src/protocol2.dart';
import 'package:analysis_server/src/search/search_domain.dart';
import 'package:analysis_server/src/services/index/index.dart';
import 'package:analysis_server/src/services/index/local_memory_index.dart';
@@ -552,11 +553,8 @@ class D extends C {
}
Request _createGetTypeHierarchyRequest(String search) {
- int offset = findOffset(search);
- Request request = new Request(requestId, SEARCH_GET_TYPE_HIERARCHY);
- request.setParameter(FILE, testFile);
- request.setParameter(OFFSET, offset);
- return request;
+ return new SearchGetTypeHierarchyParams(testFile,
+ findOffset(search)).toRequest(requestId);
}
Future<List<Map<String, Object>>> _getTypeHierarchy(String search) {
« no previous file with comments | « pkg/analysis_server/test/search/top_level_declarations_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698