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

Unified Diff: pkg/analysis_server/test/abstract_single_unit.dart

Issue 2614033003: Make subclasses of AbstractContextTest asynchronous. (Closed)
Patch Set: Created 3 years, 11 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
Index: pkg/analysis_server/test/abstract_single_unit.dart
diff --git a/pkg/analysis_server/test/abstract_single_unit.dart b/pkg/analysis_server/test/abstract_single_unit.dart
index bda1d20579007be2f88afca6dd92ecd6ef35642b..779fa6b16389e7efcc98a915b318179e8c572345 100644
--- a/pkg/analysis_server/test/abstract_single_unit.dart
+++ b/pkg/analysis_server/test/abstract_single_unit.dart
@@ -4,6 +4,7 @@
library test.services.src.index.abstract_single_file;
+import 'dart:async';
import 'package:analyzer/dart/ast/ast.dart';
import 'package:analyzer/dart/element/element.dart';
import 'package:analyzer/error/error.dart';
@@ -98,9 +99,9 @@ class AbstractSingleUnitTest extends AbstractContextTest {
return length;
}
- void resolveTestUnit(String code) {
+ Future<Null> resolveTestUnit(String code) async {
addTestSource(code);
- testUnit = resolveLibraryUnit(testSource);
+ testUnit = await resolveLibraryUnit(testSource);
if (verifyNoTestUnitErrors) {
assertNoErrorsInSource(testSource);
}
« no previous file with comments | « pkg/analysis_server/test/abstract_context.dart ('k') | pkg/analysis_server/test/plugin/protocol_dart_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698