Chromium Code Reviews| Index: pkg/http_server/test/http_mock.dart |
| diff --git a/pkg/http_server/test/http_mock.dart b/pkg/http_server/test/http_mock.dart |
| index aa20ffb57bfa1323ea962d94160e4c6b529da1fc..1f9a8d03ce9af972eb54905af0be0e992ca71778 100644 |
| --- a/pkg/http_server/test/http_mock.dart |
| +++ b/pkg/http_server/test/http_mock.dart |
| @@ -9,6 +9,7 @@ class MockHttpHeaders implements HttpHeaders { |
| final Map<String, List<String>> _headers = |
| new HashMap<String, List<String>>(); |
| + operator[](key) => _headers[key]; |
| DateTime get ifModifiedSince { |
| List<String> values = _headers[HttpHeaders.IF_MODIFIED_SINCE]; |
| @@ -182,6 +183,8 @@ class MockHttpResponse implements HttpResponse { |
| String get mockContent => UTF8.decode(_buffer); |
| + String get mockContentBinary => _buffer; |
|
kustermann
2014/11/14 13:25:27
That seems wrong. [_buffer] is of type List<int>
Søren Gjesse
2014/11/14 15:27:29
Fixed. The beauty of ignoring the analyzer.
|
| + |
| bool get mockDone => _isDone; |
| // Copied from SDK http_impl.dart @ 845 on 2014-01-05 |