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

Unified Diff: test/mock_sdk.dart

Issue 2417463002: Move MockSdk into tests. (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
« no previous file with comments | « pubspec.yaml ('k') | test/rule_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mock_sdk.dart
diff --git a/lib/src/sdk.dart b/test/mock_sdk.dart
similarity index 95%
rename from lib/src/sdk.dart
rename to test/mock_sdk.dart
index 2904637b292376c2aa8f61dfe7fcbb53aecd3a40..398109ff559fcf6005cadcba142504e5780fc77c 100644
--- a/lib/src/sdk.dart
+++ b/test/mock_sdk.dart
@@ -346,27 +346,7 @@ class _MockSdkLibrary implements SdkLibrary {
[this.parts = const <_MockSdkFile>[]]);
@override
- String get category => throw unimplemented;
-
- @override
- bool get isDart2JsLibrary => throw unimplemented;
-
- @override
- bool get isDocumented => throw unimplemented;
-
- @override
- bool get isImplementation => throw unimplemented;
-
- @override
- bool get isInternal => throw unimplemented;
-
- @override
- bool get isShared => throw unimplemented;
-
- @override
- bool get isVmLibrary => throw unimplemented;
-
- UnimplementedError get unimplemented => new UnimplementedError();
+ noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
/// An [AnalysisContextImpl] that only contains sources for a Dart SDK.
« no previous file with comments | « pubspec.yaml ('k') | test/rule_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698