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

Unified Diff: pkg/http/lib/testing.dart

Issue 810223002: Remove the http package from the repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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
Index: pkg/http/lib/testing.dart
diff --git a/pkg/http/lib/testing.dart b/pkg/http/lib/testing.dart
deleted file mode 100644
index 45d2c610a5da85d96b8d60e95775e2015e71f416..0000000000000000000000000000000000000000
--- a/pkg/http/lib/testing.dart
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) 2012, 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.
-
-/// This library contains testing classes for the HTTP library.
-///
-/// The [MockClient] class is a drop-in replacement for `http.Client` that
-/// allows test code to set up a local request handler in order to fake a server
-/// that responds to HTTP requests:
-///
-/// import 'dart:convert';
-/// import 'package:http/testing.dart';
-///
-/// var client = new MockClient((request) {
-/// if (request.url.path != "/data.json") {
-/// return new Response("", 404);
-/// }
-/// return new Response(JSON.encode({
-/// 'numbers': [1, 4, 15, 19, 214]
-/// }, 200, headers: {
-/// 'content-type': 'application/json'
-/// });
-/// };
-library http.testing;
-
-export 'src/mock_client.dart';
« no previous file with comments | « pkg/http/lib/src/utils.dart ('k') | pkg/http/pubspec.yaml » ('j') | pkg/pkg.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698