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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/constant/ConstantValueComputerTest.java

Issue 595513003: Version 1.7.0-dev.3.3 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 6 years, 3 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.engine_test/src/com/google/dart/engine/internal/constant/ConstantValueComputerTest.java
===================================================================
--- editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/constant/ConstantValueComputerTest.java (revision 40542)
+++ editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/constant/ConstantValueComputerTest.java (working copy)
@@ -35,7 +35,6 @@
import com.google.dart.engine.internal.element.VariableElementImpl;
import com.google.dart.engine.internal.object.DartObjectImpl;
import com.google.dart.engine.internal.object.GenericState;
-import com.google.dart.engine.internal.resolver.TestTypeProvider;
import com.google.dart.engine.internal.resolver.TypeProvider;
import com.google.dart.engine.resolver.ResolverTestCase;
import com.google.dart.engine.source.Source;
@@ -171,7 +170,7 @@
validate(true, ((TopLevelVariableDeclaration) members.get(1)).getVariables());
}
- public void test_computeValues_empty() {
+ public void test_computeValues_empty() throws Exception {
ConstantValueComputer computer = makeConstantValueComputer();
computer.computeValues();
}
@@ -935,9 +934,9 @@
return ((InstanceCreationExpression) expression).getEvaluationResult();
}
- private ConstantValueComputer makeConstantValueComputer() {
+ private ConstantValueComputer makeConstantValueComputer() throws AnalysisException {
return new ValidatingConstantValueComputer(
- new TestTypeProvider(),
+ analysisContext.getTypeProvider(),
analysisContext.getDeclaredVariables());
}

Powered by Google App Engine
This is Rietveld 408576698