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

Unified Diff: pkg/analysis_server/test/integration/analysis/overrides_test.dart

Issue 2394683006: Switch analysis_server to use 'package:test'. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/test/integration/analysis/overrides_test.dart
diff --git a/pkg/analysis_server/test/integration/analysis/overrides_test.dart b/pkg/analysis_server/test/integration/analysis/overrides_test.dart
index e7b77dca5a7cf7282d7675f83d2126e0a037c0e4..c08d044d8aba837b39e0b74c78439259f069592f 100644
--- a/pkg/analysis_server/test/integration/analysis/overrides_test.dart
+++ b/pkg/analysis_server/test/integration/analysis/overrides_test.dart
@@ -5,15 +5,17 @@
library test.integration.analysis.overrides;
import 'package:analysis_server/plugin/protocol/protocol.dart';
+import 'package:test/test.dart';
import 'package:test_reflective_loader/test_reflective_loader.dart';
-import 'package:unittest/unittest.dart';
import '../../utils.dart';
import '../integration_tests.dart';
main() {
initializeTestEnvironment();
- defineReflectiveTests(Test);
+ defineReflectiveSuite(() {
+ defineReflectiveTests(Test);
+ });
}
@reflectiveTest
@@ -74,6 +76,7 @@ class Target extends Base implements Interface1, Interface2 {
}
return null;
}
+
void checkOverrides(String methodName, bool expectedOverridesBase,
List<String> expectedOverridesInterfaces) {
Override override = findOverride(methodName);
@@ -109,6 +112,7 @@ class Target extends Base implements Interface1, Interface2 {
expect(interfaceMembers, isNull);
}
}
+
checkOverrides('method0', true, ['Interface1', 'Interface2']);
checkOverrides('method1', false, ['Interface1', 'Interface2']);
checkOverrides('method2', true, ['Interface1']);

Powered by Google App Engine
This is Rietveld 408576698