Remove mocks from compile_expression_test (#78092)

This commit is contained in:
Jenn Magder
2021-03-15 16:06:54 -07:00
committed by GitHub
parent 67aaaba442
commit 628ae57e4e
4 changed files with 23 additions and 20 deletions

View File

@@ -252,6 +252,16 @@ class MemoryIOSink implements IOSink {
@override
Future<void> flush() async { }
void clear() {
writes.clear();
}
String getAndClear() {
final String result = utf8.decode(writes.expand((List<int> l) => l).toList());
clear();
return result;
}
}
class MemoryStdout extends MemoryIOSink implements io.Stdout {