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

Unified Diff: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/IOSemanticProcessorTest.java

Issue 12543009: Use JavaFile instead of Dart File. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/IOSemanticProcessorTest.java
diff --git a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/IOSemanticProcessorTest.java b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/IOSemanticProcessorTest.java
index 9b0f89a6433d60d30c772bc089a868277e987e3d..f21ef98494ff243635cd5d539b75cfc6de513bc7 100644
--- a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/IOSemanticProcessorTest.java
+++ b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/IOSemanticProcessorTest.java
@@ -34,8 +34,8 @@ public class IOSemanticProcessorTest extends SemanticProcessorTest {
IOSemanticProcessor.INSTANCE.process(context, unit);
assertFormattedSource(
"class Test {",
- " File newRelative(File parent, String child) => newRelativeFile(parent, child);",
- " File newFromURI(Uri uri) => newFileFromUri(uri);",
+ " JavaFile newRelative(JavaFile parent, String child) => new JavaFile.relative(parent, child);",
+ " JavaFile newFromURI(Uri uri) => new JavaFile.fromUri(uri);",
"}");
}
@@ -56,12 +56,12 @@ public class IOSemanticProcessorTest extends SemanticProcessorTest {
IOSemanticProcessor.INSTANCE.process(context, unit);
assertFormattedSource(
"class Test {",
- " void main(File f) {",
- " f.fullPathSync();",
- " f.fullPathSync();",
- " getAbsoluteFile(f);",
- " f.path;",
- " f.existsSync();",
+ " void main(JavaFile f) {",
+ " f.getPath();",
+ " f.getAbsolutePath();",
+ " f.getAbsoluteFile();",
+ " f.getName();",
+ " f.exists();",
" }",
"}");
}
@@ -82,8 +82,8 @@ public class IOSemanticProcessorTest extends SemanticProcessorTest {
IOSemanticProcessor.INSTANCE.process(context, unit);
assertFormattedSource(//
"class Test {",
- " int testA() => System.pathSeparatorChar;",
- " String testB() => System.pathSeparator;",
+ " int testA() => JavaFile.separatorChar;",
+ " String testB() => JavaFile.separator;",
"}");
}
@@ -109,7 +109,7 @@ public class IOSemanticProcessorTest extends SemanticProcessorTest {
" Uri result = new Uri.fromComponents(path: absolutePath);",
" return result;",
" }",
- " Uri newFromFile(File f) => newUriFromFile(f);",
+ " Uri newFromFile(JavaFile f) => f.toURI();",
"}");
}

Powered by Google App Engine
This is Rietveld 408576698