Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 library mocks; | |
| 6 | |
| 7 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
| |
| 8 | |
| 9 /** | |
| 10 * Instances of the class [MockChannel] implement a [CommunicationChannel] that | |
| 11 * does nothing in response to every method invoked on it. | |
| 12 */ | |
| 13 class MockChannel implements CommunicationChannel { | |
| 14 dynamic noSuchMethod(Invocation invocation) { | |
| 15 // Do nothing | |
| 16 } | |
| 17 } | |
| OLD | NEW |