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

Unified Diff: compiler/javatests/com/google/dart/compiler/end2end/inc/MemoryLibrarySource.java

Issue 10389206: Issue 3123. Catch exceptions in Source.exists()/initProperties() (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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: compiler/javatests/com/google/dart/compiler/end2end/inc/MemoryLibrarySource.java
diff --git a/compiler/javatests/com/google/dart/compiler/end2end/inc/MemoryLibrarySource.java b/compiler/javatests/com/google/dart/compiler/end2end/inc/MemoryLibrarySource.java
index 8b221e725d40f6c99e65ec3f2b427cda4e83d1b7..4d7aa25052ce004b1c44e62c1ea17d923fa7a6f7 100644
--- a/compiler/javatests/com/google/dart/compiler/end2end/inc/MemoryLibrarySource.java
+++ b/compiler/javatests/com/google/dart/compiler/end2end/inc/MemoryLibrarySource.java
@@ -80,7 +80,7 @@ public class MemoryLibrarySource implements LibrarySource {
final String content = sourceContentMap.get(relPath);
final Long sourceLastModified = sourceLastModifiedMap.get(relPath);
// Return fake UrlDateSource with in-memory content.
- URI uri = URI.create(relPath);
+ final URI uri = URI.create(relPath);
return new UrlDartSource(uri, relPath, this) {
@Override
public String getName() {
@@ -88,6 +88,11 @@ public class MemoryLibrarySource implements LibrarySource {
}
@Override
+ public URI getUri() {
+ return uri;
+ }
+
+ @Override
public boolean exists() {
return content != null;
}

Powered by Google App Engine
This is Rietveld 408576698