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

Side by Side Diff: sdk/lib/_internal/pub/test/test_pub.dart

Issue 94843002: Unify dart:async and pub/io.dart TimeoutException classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 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 | « sdk/lib/_internal/pub/test/io_test.dart ('k') | sdk/lib/async/future.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 /// Test infrastructure for testing pub. Unlike typical unit tests, most pub 5 /// Test infrastructure for testing pub. Unlike typical unit tests, most pub
6 /// tests are integration tests that stage some stuff on the file system, run 6 /// tests are integration tests that stage some stuff on the file system, run
7 /// pub, and then validate the results. This library provides an API to build 7 /// pub, and then validate the results. This library provides an API to build
8 /// tests like that. 8 /// tests like that.
9 library test_pub; 9 library test_pub;
10 10
11 import 'dart:async' hide TimeoutException; 11 import 'dart:async';
12 import 'dart:convert'; 12 import 'dart:convert';
13 import 'dart:io'; 13 import 'dart:io';
14 import 'dart:math'; 14 import 'dart:math';
15 15
16 import 'package:http/testing.dart'; 16 import 'package:http/testing.dart';
17 import 'package:path/path.dart' as path; 17 import 'package:path/path.dart' as path;
18 import 'package:scheduled_test/scheduled_process.dart'; 18 import 'package:scheduled_test/scheduled_process.dart';
19 import 'package:scheduled_test/scheduled_server.dart'; 19 import 'package:scheduled_test/scheduled_server.dart';
20 import 'package:scheduled_test/scheduled_test.dart'; 20 import 'package:scheduled_test/scheduled_test.dart';
21 import 'package:unittest/compact_vm_config.dart'; 21 import 'package:unittest/compact_vm_config.dart';
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 bool matches(item, Map matchState) { 842 bool matches(item, Map matchState) {
843 if (item is! Pair) return false; 843 if (item is! Pair) return false;
844 return _firstMatcher.matches(item.first, matchState) && 844 return _firstMatcher.matches(item.first, matchState) &&
845 _lastMatcher.matches(item.last, matchState); 845 _lastMatcher.matches(item.last, matchState);
846 } 846 }
847 847
848 Description describe(Description description) { 848 Description describe(Description description) {
849 description.addAll("(", ", ", ")", [_firstMatcher, _lastMatcher]); 849 description.addAll("(", ", ", ")", [_firstMatcher, _lastMatcher]);
850 } 850 }
851 } 851 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/test/io_test.dart ('k') | sdk/lib/async/future.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698