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

Unified Diff: pkg/analyzer_cli/test/embedder_test.dart

Issue 2242853002: Deprecate DirectoryBasedDartSdk and transition existing uses to the new API (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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
Index: pkg/analyzer_cli/test/embedder_test.dart
diff --git a/pkg/analyzer_cli/test/embedder_test.dart b/pkg/analyzer_cli/test/embedder_test.dart
index 5a57c2d9c1141c4292c35f78fe3945d552b701f4..93bbaf5c2703f1d2069eb7a556a163911b3a0566 100644
--- a/pkg/analyzer_cli/test/embedder_test.dart
+++ b/pkg/analyzer_cli/test/embedder_test.dart
@@ -4,7 +4,8 @@
import 'dart:io';
-import 'package:analyzer/src/generated/sdk_io.dart';
+import 'package:analyzer/src/dart/sdk/sdk.dart';
+import 'package:analyzer/src/generated/sdk.dart';
import 'package:analyzer_cli/src/driver.dart' show Driver, errorSink, outSink;
import 'package:path/path.dart' as path;
import 'package:unittest/unittest.dart';
@@ -52,8 +53,9 @@ main() {
path.join(testDir, 'embedder_yaml_user.dart')
]);
- DirectoryBasedDartSdk sdk = driver.sdk;
- expect(sdk.useSummary, false);
+ DartSdk sdk = driver.sdk;
+ expect(sdk, new isInstanceOf<FolderBasedDartSdk>());
+ expect((sdk as FolderBasedDartSdk).useSummary, isFalse);
}));
});
}

Powered by Google App Engine
This is Rietveld 408576698