Revert "Live image cache" (#51441)

* Revert "Live image cache (#51249)"

This reverts commit e2dcdb60e3.

* fix tests for other commit
This commit is contained in:
Dan Field
2020-02-25 16:52:47 -08:00
committed by GitHub
parent 7cbe55cf1a
commit 419a2853a8
10 changed files with 66 additions and 809 deletions

View File

@@ -20,7 +20,7 @@ void main() {
final developer.ServiceProtocolInfo info = await developer.Service.getInfo();
if (info.serverUri == null) {
fail('This test _must_ be run with --enable-vmservice.');
throw TestFailure('This test _must_ be run with --enable-vmservice.');
}
await timelineObtainer.connect(info.serverUri);
await timelineObtainer.setDartFlags();
@@ -58,8 +58,7 @@ void main() {
'name': 'ImageCache.clear',
'args': <String, dynamic>{
'pendingImages': 1,
'keepAliveImages': 0,
'liveImages': 1,
'cachedImages': 0,
'currentSizeInBytes': 0,
'isolateId': isolateId,
}
@@ -150,7 +149,7 @@ class TimelineObtainer {
Future<void> close() async {
expect(_completers, isEmpty);
await _observatorySocket?.close();
await _observatorySocket.close();
}
}