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

Unified Diff: pkg/analyzer/test/src/abstract_single_unit.dart

Issue 1827293002: Use AbstractSingleUnitTest, so MockSdk in resynthesize tests. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | pkg/analyzer/test/src/context/mock_sdk.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/abstract_single_unit.dart
diff --git a/pkg/analyzer/test/src/abstract_single_unit.dart b/pkg/analyzer/test/src/abstract_single_unit.dart
index 1955d6e17030db5f24be4b0d07486b5d96547dd6..787ac21f4bbfa302c5f2b7a46e55d86d504d665c 100644
--- a/pkg/analyzer/test/src/abstract_single_unit.dart
+++ b/pkg/analyzer/test/src/abstract_single_unit.dart
@@ -24,9 +24,10 @@ class AbstractSingleUnitTest extends AbstractContextTest {
CompilationUnitElement testUnitElement;
LibraryElement testLibraryElement;
- void addTestSource(String code, [Uri uri]) {
+ Source addTestSource(String code, [Uri uri]) {
testCode = code;
testSource = addSource(testFile, code);
+ return testSource;
}
void assertNoErrorsInSource(Source source) {
« no previous file with comments | « no previous file | pkg/analyzer/test/src/context/mock_sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698