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

Unified Diff: pkg/analyzer/test/generated/engine_test.dart

Issue 1403033002: State-carrying context API. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixes and tests. Created 5 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/engine_test.dart
diff --git a/pkg/analyzer/test/generated/engine_test.dart b/pkg/analyzer/test/generated/engine_test.dart
index 43bc54fe77fd673bff8240ccf1774dbe2436c0c6..7224060d4244519d1f66c48d83a262f8aae79364 100644
--- a/pkg/analyzer/test/generated/engine_test.dart
+++ b/pkg/analyzer/test/generated/engine_test.dart
@@ -865,6 +865,15 @@ main() {}''');
});
}
+ void test_configurationData() {
+ var key = new newContext.ResultDescriptor('test_key', '');
+ var testData = ['test', 'data'];
+ _context.setConfigurationData(key, testData);
+ expect(_context.getConfigurationData(key), testData);
+ var unusedKey = new newContext.ResultDescriptor('unused_key', '');
+ expect(_context.getConfigurationData(unusedKey), null);
+ }
+
void test_dispose() {
expect(_context.isDisposed, isFalse);
_context.dispose();
@@ -5949,6 +5958,11 @@ class TestAnalysisContext implements InternalAnalysisContext {
}
@override
+ Object getConfigurationData(newContext.ResultDescriptor key) {
+ fail("Unexpected invocation of getConfigurationData");
+ }
+
+ @override
TimestampedData<String> getContents(Source source) {
fail("Unexpected invocation of getContents");
return null;
@@ -6166,6 +6180,11 @@ class TestAnalysisContext implements InternalAnalysisContext {
}
@override
+ void setConfigurationData(newContext.ResultDescriptor key, Object data) {
+ fail("Unexpected invocation of setConfigurationData");
+ }
+
+ @override
void setContents(Source source, String contents) {
fail("Unexpected invocation of setContents");
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698