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 microlytics.test_channel; | |
| 6 | |
| 7 import 'package:microlytics/channels.dart'; | |
| 8 | |
| 9 class TestChannel extends Channel { | |
| 10 List<String> _channelLog = []; | |
| 11 | |
| 12 void sendData(String data) { | |
| 13 _channelLog.add(data); | |
| 14 } | |
| 15 | |
| 16 bool contains(String data) { | |
| 17 return _channelLog.contains(data); | |
|
ahe
2014/09/05 07:51:37
It occurred to me that you might want to change th
| |
| 18 } | |
| 19 } | |
| OLD | NEW |