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

Unified Diff: pkg/analysis_server/test/computer/error_test.dart

Issue 628293004: Remove references to Engine classes from protocol.dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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: pkg/analysis_server/test/computer/error_test.dart
diff --git a/pkg/analysis_server/test/computer/error_test.dart b/pkg/analysis_server/test/computer/error_test.dart
index e83f9b28b1216acb7fde989461a82d6292428499..d92766270fc0b684c62208c08f72b014a581a37a 100644
--- a/pkg/analysis_server/test/computer/error_test.dart
+++ b/pkg/analysis_server/test/computer/error_test.dart
@@ -5,7 +5,7 @@
library test.computer.error;
import 'package:analysis_server/src/constants.dart';
-import 'package:analysis_server/src/protocol.dart';
+import 'package:analysis_server/src/protocol_server.dart';
import 'package:analyzer/src/generated/error.dart' as engine;
import 'package:analyzer/src/generated/source.dart';
import 'package:typed_mock/typed_mock.dart';
@@ -54,7 +54,7 @@ class AnalysisErrorTest {
void test_fromEngine_hasCorrection() {
when(engineError.correction).thenReturn('my correction');
- AnalysisError error = new AnalysisError.fromEngine(lineInfo, engineError);
+ AnalysisError error = newAnalysisError_fromEngine(lineInfo, engineError);
expect(error.toJson(), {
SEVERITY: 'ERROR',
TYPE: 'COMPILE_TIME_ERROR',
@@ -72,7 +72,7 @@ class AnalysisErrorTest {
void test_fromEngine_noCorrection() {
when(engineError.correction).thenReturn(null);
- AnalysisError error = new AnalysisError.fromEngine(lineInfo, engineError);
+ AnalysisError error = newAnalysisError_fromEngine(lineInfo, engineError);
expect(error.toJson(), {
SEVERITY: 'ERROR',
TYPE: 'COMPILE_TIME_ERROR',
@@ -89,7 +89,7 @@ class AnalysisErrorTest {
void test_fromEngine_noLineInfo() {
when(engineError.correction).thenReturn(null);
- AnalysisError error = new AnalysisError.fromEngine(null, engineError);
+ AnalysisError error = newAnalysisError_fromEngine(null, engineError);
expect(error.toJson(), {
SEVERITY: 'ERROR',
TYPE: 'COMPILE_TIME_ERROR',
« no previous file with comments | « pkg/analysis_server/test/computer/element_test.dart ('k') | pkg/analysis_server/test/search/search_result_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698