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

Side by Side Diff: test/descriptor/tar.dart

Issue 1585513002: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 4 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
« no previous file with comments | « test/descriptor/packages.dart ('k') | test/downgrade/does_not_show_other_versions_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) 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 library descriptor.tar;
6
7 import 'dart:async'; 5 import 'dart:async';
8 6
9 import 'package:path/path.dart' as path; 7 import 'package:path/path.dart' as path;
10 import 'package:pub/src/io.dart'; 8 import 'package:pub/src/io.dart';
11 import 'package:scheduled_test/scheduled_test.dart'; 9 import 'package:scheduled_test/scheduled_test.dart';
12 import 'package:scheduled_test/descriptor.dart'; 10 import 'package:scheduled_test/descriptor.dart';
13 11
14 12
15 /// Describes a tar file and its contents. 13 /// Describes a tar file and its contents.
16 class TarFileDescriptor extends DirectoryDescriptor 14 class TarFileDescriptor extends DirectoryDescriptor
(...skipping 27 matching lines...) Expand all
44 throw new UnimplementedError("TODO(nweiz): implement this"); 42 throw new UnimplementedError("TODO(nweiz): implement this");
45 } 43 }
46 44
47 Stream<List<int>> read() { 45 Stream<List<int>> read() {
48 return new Stream<List<int>>.fromFuture(withTempDir((tempDir) { 46 return new Stream<List<int>>.fromFuture(withTempDir((tempDir) {
49 return create(tempDir).then((_) => 47 return create(tempDir).then((_) =>
50 readBinaryFile(path.join(tempDir, name))); 48 readBinaryFile(path.join(tempDir, name)));
51 })); 49 }));
52 } 50 }
53 } 51 }
OLDNEW
« no previous file with comments | « test/descriptor/packages.dart ('k') | test/downgrade/does_not_show_other_versions_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698