Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(885)

Unified Diff: pkg/http_server/test/virtual_directory_test.dart

Issue 17581002: Add new VirtualHost class to http_server package, for handling multiple hosts on multiple sources (… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add cert and factor out getStatusCode and getHeaders to utils.dart. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/http_server/test/utils.dart ('k') | pkg/http_server/test/virtual_host_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « pkg/http_server/test/utils.dart ('k') | pkg/http_server/test/virtual_host_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698