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

Unified Diff: pkg/analysis_server/test/operation/operation_queue_test.dart

Issue 311263012: Remove 'as dynamic' cast after typed_mock fix. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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
« no previous file with comments | « pkg/analysis_server/pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/operation/operation_queue_test.dart
diff --git a/pkg/analysis_server/test/operation/operation_queue_test.dart b/pkg/analysis_server/test/operation/operation_queue_test.dart
index 2b05e148ce0ca86bfd1b1960d13378ecfcbbd855..32dcd783a71b8fc4114cdd83a4c94ed6bc690e8e 100644
--- a/pkg/analysis_server/test/operation/operation_queue_test.dart
+++ b/pkg/analysis_server/test/operation/operation_queue_test.dart
@@ -54,8 +54,7 @@ main() {
});
test('use operation priorities', () {
- // TODO(scheglov) update 'typed_mock' to make 'any*' fields dynamic
- when(server.isPriorityContext(anyObject as dynamic)).thenReturn(false);
+ when(server.isPriorityContext(anyObject)).thenReturn(false);
var analysisContext = new AnalysisContextMock();
var operationA = mockOperation(ServerOperationPriority.SEARCH);
var operationB = mockOperation(ServerOperationPriority.REFACTORING);
@@ -70,8 +69,7 @@ main() {
});
test('continue analysis first', () {
- // TODO(scheglov) update 'typed_mock' to make 'any*' fields dynamic
- when(server.isPriorityContext(anyObject as dynamic)).thenReturn(false);
+ when(server.isPriorityContext(anyObject)).thenReturn(false);
var analysisContext = new AnalysisContextMock();
var operationA = new PerformAnalysisOperation(analysisContext, false);
var operationB = new PerformAnalysisOperation(analysisContext, true);
« no previous file with comments | « pkg/analysis_server/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698