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

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

Issue 137853026: Basic communication protocol for server (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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/mocks.dart
diff --git a/pkg/analysis_server/test/mocks.dart b/pkg/analysis_server/test/mocks.dart
new file mode 100644
index 0000000000000000000000000000000000000000..18f3d6e9d4e9acb129d0bc0a979c6392521b8e4e
--- /dev/null
+++ b/pkg/analysis_server/test/mocks.dart
@@ -0,0 +1,17 @@
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+library mocks;
+
+import '../lib/src/channel.dart';
devoncarew 2014/01/20 22:35:01 You can also use a self-reference here: import 'p
Brian Wilkerson 2014/01/21 03:21:20 That does seem somewhat cleaner, though. What's th
devoncarew 2014/01/21 04:16:08 Within lib, I've only ever used relative file refe
+
+/**
+ * Instances of the class [MockChannel] implement a [CommunicationChannel] that
+ * does nothing in response to every method invoked on it.
+ */
+class MockChannel implements CommunicationChannel {
+ dynamic noSuchMethod(Invocation invocation) {
+ // Do nothing
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698