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

Unified Diff: pkg/analyzer_cli/test/reporter_test.dart

Issue 2989583003: Replace typed_mock with mockito in analyzer_cli. (Closed)
Patch Set: Created 3 years, 5 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/analyzer_cli/test/mocks.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_cli/test/reporter_test.dart
diff --git a/pkg/analyzer_cli/test/reporter_test.dart b/pkg/analyzer_cli/test/reporter_test.dart
index 193a532ff247cda17d2eb1d0c65e9a631dad329e..d5de24cb03b5cb311051a50c557872833fbe83b7 100644
--- a/pkg/analyzer_cli/test/reporter_test.dart
+++ b/pkg/analyzer_cli/test/reporter_test.dart
@@ -9,7 +9,7 @@ import 'package:analyzer/src/generated/engine.dart';
import 'package:analyzer_cli/src/ansi.dart' as ansi;
import 'package:analyzer_cli/src/error_formatter.dart';
import 'package:test/test.dart' hide ErrorFormatter;
-import 'package:typed_mock/typed_mock.dart';
+import 'package:mockito/mockito.dart';
import 'mocks.dart';
@@ -80,7 +80,7 @@ MockAnalysisErrorInfo mockError(ErrorType type, ErrorSeverity severity) {
var location = new MockLineInfo_Location();
when(location.columnNumber).thenReturn(3);
when(location.lineNumber).thenReturn(3);
- when(lineInfo.getLocation(anyObject)).thenReturn(location);
+ when(lineInfo.getLocation(any)).thenReturn(location);
when(info.lineInfo).thenReturn(lineInfo);
// Details
« no previous file with comments | « pkg/analyzer_cli/test/mocks.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698