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

Unified Diff: pkg/analysis_server/test/mocks.dart

Issue 191103002: Add back previously removed tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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/test/domain_server_test.dart ('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/mocks.dart
diff --git a/pkg/analysis_server/test/mocks.dart b/pkg/analysis_server/test/mocks.dart
index 7b898cbd4f53e7f059cc18d9ae99b47d009dd36c..88a6744c908c20e1ab6b1d67540ac375126fee66 100644
--- a/pkg/analysis_server/test/mocks.dart
+++ b/pkg/analysis_server/test/mocks.dart
@@ -7,6 +7,9 @@ library mocks;
import 'dart:async';
import 'dart:io';
+import 'package:analysis_server/src/channel.dart';
+import 'package:analysis_server/src/protocol.dart';
+
/**
* A mock [WebSocket] for testing.
*/
@@ -46,3 +49,20 @@ class MockSocket<T> implements WebSocket {
noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
+
+/**
+ * A mock [ServerCommunicationChannel] channel that does nothing.
+ */
+class MockServerChannel implements ServerCommunicationChannel {
+ @override
+ void listen(void onRequest(Request request), {void onError(), void onDone()}) {
+ }
+
+ @override
+ void sendNotification(Notification notification) {
+ }
+
+ @override
+ void sendResponse(Response response) {
+ }
+}
« no previous file with comments | « pkg/analysis_server/test/domain_server_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698