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

Side by Side Diff: pkg/http/test/utils.dart

Issue 11746009: Convert pkg/http to use "package:" imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Copy code from http/test. Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/http/test/streamed_request_test.dart ('k') | utils/tests/pub/curl_client_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test_utils; 5 library test_utils;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import 'dart:json'; 8 import 'dart:json';
9 import 'dart:uri'; 9 import 'dart:uri';
10 10
11 import '../../unittest/lib/unittest.dart'; 11 import 'package:unittest/unittest.dart';
12 import '../lib/http.dart' as http; 12 import 'package:http/http.dart' as http;
13 import '../lib/src/utils.dart'; 13 import 'package:http/src/utils.dart';
14 14
15 /// The current server instance. 15 /// The current server instance.
16 HttpServer _server; 16 HttpServer _server;
17 17
18 /// The URL for the current server instance. 18 /// The URL for the current server instance.
19 Uri get serverUrl => new Uri.fromString('http://localhost:${_server.port}'); 19 Uri get serverUrl => new Uri.fromString('http://localhost:${_server.port}');
20 20
21 /// A dummy URL for constructing requests that won't be sent. 21 /// A dummy URL for constructing requests that won't be sent.
22 Uri get dummyUrl => new Uri.fromString('http://dartlang.org/'); 22 Uri get dummyUrl => new Uri.fromString('http://dartlang.org/');
23 23
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 const Matcher throwsRedirectLimitExceededException = 165 const Matcher throwsRedirectLimitExceededException =
166 const Throws(isRedirectLimitExceededException); 166 const Throws(isRedirectLimitExceededException);
167 167
168 class _RedirectLimitExceededException extends TypeMatcher { 168 class _RedirectLimitExceededException extends TypeMatcher {
169 const _RedirectLimitExceededException() : 169 const _RedirectLimitExceededException() :
170 super("RedirectLimitExceededException"); 170 super("RedirectLimitExceededException");
171 171
172 bool matches(item, MatchState matchState) => 172 bool matches(item, MatchState matchState) =>
173 item is RedirectLimitExceededException; 173 item is RedirectLimitExceededException;
174 } 174 }
OLDNEW
« no previous file with comments | « pkg/http/test/streamed_request_test.dart ('k') | utils/tests/pub/curl_client_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698