| Index: pkg/http_server/test/virtual_directory_test.dart
|
| diff --git a/pkg/http_server/test/virtual_directory_test.dart b/pkg/http_server/test/virtual_directory_test.dart
|
| index 2b21a207bc989519aea29571f6a784444f39eaca..7b6c81553f0532ad2df220d518816665b93ec1ae 100644
|
| --- a/pkg/http_server/test/virtual_directory_test.dart
|
| +++ b/pkg/http_server/test/virtual_directory_test.dart
|
| @@ -8,27 +8,7 @@ import 'dart:io';
|
| import "package:unittest/unittest.dart";
|
| import "package:http_server/http_server.dart";
|
|
|
| -
|
| -Future<int> getStatusCode(int port,
|
| - String path,
|
| - {DateTime ifModifiedSince}) {
|
| - return new HttpClient().get('localhost', port, path)
|
| - .then((request) {
|
| - if (ifModifiedSince != null) {
|
| - request.headers.ifModifiedSince = ifModifiedSince;
|
| - }
|
| - return request.close();
|
| - })
|
| - .then((response) => response.drain().then(
|
| - (_) => response.statusCode));
|
| -}
|
| -
|
| -Future<HttpHeaders> getHeaders(int port, String path) {
|
| - return new HttpClient().get('localhost', port, path)
|
| - .then((request) => request.close())
|
| - .then((response) => response.drain().then(
|
| - (_) => response.headers));
|
| -}
|
| +import 'utils.dart';
|
|
|
|
|
| void main() {
|
|
|