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

Side by Side Diff: utils/tests/pub/test_pub.dart

Issue 11647003: Move path ("pathos") to pkg/. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Typo. Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/tests/pub/path/path_windows_test.dart ('k') | no next file » | 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 /** 5 /**
6 * Test infrastructure for testing pub. Unlike typical unit tests, most pub 6 * Test infrastructure for testing pub. Unlike typical unit tests, most pub
7 * tests are integration tests that stage some stuff on the file system, run 7 * tests are integration tests that stage some stuff on the file system, run
8 * pub, and then validate the results. This library provides an API to build 8 * pub, and then validate the results. This library provides an API to build
9 * tests like that. 9 * tests like that.
10 */ 10 */
11 library test_pub; 11 library test_pub;
12 12
13 import 'dart:io'; 13 import 'dart:io';
14 import 'dart:isolate'; 14 import 'dart:isolate';
15 import 'dart:json'; 15 import 'dart:json';
16 import 'dart:math'; 16 import 'dart:math';
17 import 'dart:uri'; 17 import 'dart:uri';
18 18
19 import '../../../pkg/oauth2/lib/oauth2.dart' as oauth2; 19 import '../../../pkg/oauth2/lib/oauth2.dart' as oauth2;
20 import '../../../pkg/path/lib/path.dart' as path;
20 import '../../../pkg/unittest/lib/unittest.dart'; 21 import '../../../pkg/unittest/lib/unittest.dart';
21 import '../../lib/file_system.dart' as fs; 22 import '../../lib/file_system.dart' as fs;
22 import '../../pub/entrypoint.dart'; 23 import '../../pub/entrypoint.dart';
23 import '../../pub/git_source.dart'; 24 import '../../pub/git_source.dart';
24 import '../../pub/hosted_source.dart'; 25 import '../../pub/hosted_source.dart';
25 import '../../pub/io.dart'; 26 import '../../pub/io.dart';
26 import '../../pub/path.dart' as path;
27 import '../../pub/sdk_source.dart'; 27 import '../../pub/sdk_source.dart';
28 import '../../pub/system_cache.dart'; 28 import '../../pub/system_cache.dart';
29 import '../../pub/utils.dart'; 29 import '../../pub/utils.dart';
30 import '../../pub/validator.dart'; 30 import '../../pub/validator.dart';
31 import '../../pub/yaml/yaml.dart'; 31 import '../../pub/yaml/yaml.dart';
32 32
33 /** 33 /**
34 * Creates a new [FileDescriptor] with [name] and [contents]. 34 * Creates a new [FileDescriptor] with [name] and [contents].
35 */ 35 */
36 FileDescriptor file(Pattern name, String contents) => 36 FileDescriptor file(Pattern name, String contents) =>
(...skipping 1627 matching lines...) Expand 10 before | Expand all | Expand 10 after
1664 /// calling [completion] is unnecessary. 1664 /// calling [completion] is unnecessary.
1665 void expectLater(Future actual, matcher, {String reason, 1665 void expectLater(Future actual, matcher, {String reason,
1666 FailureHandler failureHandler, bool verbose: false}) { 1666 FailureHandler failureHandler, bool verbose: false}) {
1667 _schedule((_) { 1667 _schedule((_) {
1668 return actual.transform((value) { 1668 return actual.transform((value) {
1669 expect(value, matcher, reason: reason, failureHandler: failureHandler, 1669 expect(value, matcher, reason: reason, failureHandler: failureHandler,
1670 verbose: false); 1670 verbose: false);
1671 }); 1671 });
1672 }); 1672 });
1673 } 1673 }
OLDNEW
« no previous file with comments | « utils/tests/pub/path/path_windows_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698