Chromium Code Reviews| 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 |
| + } |
| +} |