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

Unified Diff: compiler/javatests/com/google/dart/compiler/backend/common/TypeHeuristicImplementationTest.java

Issue 9113017: Add unitAboutToCompile() into DartCompilerListener (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 12 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/backend/common/TypeHeuristicImplementationTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/backend/common/TypeHeuristicImplementationTest.java b/compiler/javatests/com/google/dart/compiler/backend/common/TypeHeuristicImplementationTest.java
index 3f251186f8a02fef79a39c7477c2922e5382e12c..6e6d6ec35b8a04406931578f97b09c2caef36c19 100644
--- a/compiler/javatests/com/google/dart/compiler/backend/common/TypeHeuristicImplementationTest.java
+++ b/compiler/javatests/com/google/dart/compiler/backend/common/TypeHeuristicImplementationTest.java
@@ -7,7 +7,6 @@ package com.google.dart.compiler.backend.common;
import com.google.common.collect.Sets;
import com.google.common.io.Files;
import com.google.dart.compiler.CompilerTestCase;
-import com.google.dart.compiler.DartCompilationError;
import com.google.dart.compiler.DartCompiler;
import com.google.dart.compiler.DartCompilerListener;
import com.google.dart.compiler.DartSourceTest;
@@ -70,15 +69,7 @@ public class TypeHeuristicImplementationTest extends CompilerTestCase {
Map<URI, DartUnit> parsedUnits = new HashMap<URI, DartUnit>();
DefaultCompilerConfiguration config = new DefaultCompilerConfiguration();
DefaultDartArtifactProvider provider = new DefaultDartArtifactProvider(Files.createTempDir());
- DartCompilerListener listener = new DartCompilerListener() {
- @Override
- public void onError(DartCompilationError event) {
- }
-
- @Override
- public void unitCompiled(DartUnit unit) {
- }
- };
+ DartCompilerListener listener = DartCompilerListener.EMPTY;
LibraryUnit libUnit = DartCompiler.analyzeLibrary(lib, parsedUnits, config, provider,
listener);
LibraryUnit corelibUnit = libUnit.getImports().iterator().next();

Powered by Google App Engine
This is Rietveld 408576698