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

Unified Diff: pkg/http/test/html/utils.dart

Issue 261763002: Rip out the last dart:io dependency from pkg/http. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 8 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/test/html/streamed_request_test.dart ('k') | pkg/http/test/http_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/test/html/utils.dart
diff --git a/pkg/http/test/html/utils.dart b/pkg/http/test/html/utils.dart
new file mode 100644
index 0000000000000000000000000000000000000000..5803ec29550796cad0850e1e23db3e8a5e3bb094
--- /dev/null
+++ b/pkg/http/test/html/utils.dart
@@ -0,0 +1,19 @@
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+library http.test.html_utils;
+
+import 'dart:async';
+import 'dart:convert';
+import 'dart:html';
+
+import 'package:http/http.dart';
+import 'package:http/src/utils.dart';
+import 'package:unittest/unittest.dart';
+
+export '../utils.dart';
+
+/// The test server's echo URL.
+Uri get echoUrl => Uri.parse(
+ '${window.location.protocol}//${window.location.host}/echo');
« no previous file with comments | « pkg/http/test/html/streamed_request_test.dart ('k') | pkg/http/test/http_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698