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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/analysis/AnalysisTestUtilities.java

Issue 10837119: Fix for http://code.google.com/p/dart/issues/detail?id=3155 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/analysis/AnalysisTestUtilities.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/analysis/AnalysisTestUtilities.java (revision 10235)
+++ editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/analysis/AnalysisTestUtilities.java (working copy)
@@ -108,6 +108,12 @@
fail(msg);
}
+ static Object getCachedLibrary(Context context, File libraryFile) throws Exception {
+ Method method = Context.class.getDeclaredMethod("getCachedLibrary", File.class);
+ method.setAccessible(true);
+ return method.invoke(context, libraryFile);
+ }
+
static TaskQueue getServerTaskQueue(AnalysisServer server) throws Exception {
Field field = AnalysisServer.class.getDeclaredField("queue");
field.setAccessible(true);

Powered by Google App Engine
This is Rietveld 408576698