From 08e73054a4efc06861ea85481e7bbd4c07f502d3 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Tue, 24 Jun 2014 12:02:59 +0200 Subject: [PATCH] fix(cache): Make UnboundedCache extend Cache Closes #1174 --- lib/cache/cache.dart | 2 +- test/core_dom/http_spec.dart | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/cache/cache.dart b/lib/cache/cache.dart index 248c7f9ed..bfc65c80e 100644 --- a/lib/cache/cache.dart +++ b/lib/cache/cache.dart @@ -47,7 +47,7 @@ abstract class Cache { /** * An unbounded cache. */ -class UnboundedCache implements Cache { +class UnboundedCache extends Cache { Map _entries = new HashMap(); int _hits = 0; int _misses = 0; diff --git a/test/core_dom/http_spec.dart b/test/core_dom/http_spec.dart index e4abe56de..0a0188f26 100644 --- a/test/core_dom/http_spec.dart +++ b/test/core_dom/http_spec.dart @@ -8,9 +8,8 @@ var VALUE = 'val'; var CACHED_VALUE = 'cached_value'; class FakeCache extends UnboundedCache { - get(x) => x == 'f' ? new HttpResponse(200, CACHED_VALUE) : null; - put(_,__) => null; - + HttpResponse get(x) => x == 'f' ? new HttpResponse(200, CACHED_VALUE) : null; + HttpResponse put(_,__) => null; } class SubstringRewriter extends UrlRewriter {