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

Unified Diff: pkg/analysis_server_client/test/analysis_server_client_test.dart

Issue 2996703002: Test failing fix (Closed)
Patch Set: Created 3 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server_client/test/analysis_server_client_test.dart
diff --git a/pkg/analysis_server_client/test/analysis_server_client_test.dart b/pkg/analysis_server_client/test/analysis_server_client_test.dart
index 4e2f5acfa3151177309ea1b94305bc535ee17e32..900bd52b0b0cc1413fab3f38796ef4bff0b1f5fc 100644
--- a/pkg/analysis_server_client/test/analysis_server_client_test.dart
+++ b/pkg/analysis_server_client/test/analysis_server_client_test.dart
@@ -16,8 +16,10 @@ void main() {
setUp(() async {
_process = new MockProcess();
+ final _mockStdin = new MockStdin();
serverWrapper = new AnalysisServerClient(_process);
- when(_process.stdin).thenReturn(<int>[]);
+ when(_process.stdin).thenReturn(_mockStdin);
+ when(_mockStdin.add).thenReturn(null);
});
test('test_listenToOutput_good', () async {
@@ -91,3 +93,5 @@ Stream<List<int>> _eventMessage() async* {
}
class MockProcess extends Mock implements Process {}
+
+class MockStdin extends Mock implements List {}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698