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

Side by Side Diff: utils/tests/pub/descriptor/tar.dart

Issue 12782016: Switch pkg packages, pub, and dartdoc to use package: imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes. Created 7 years, 8 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 | « utils/tests/pub/descriptor/git.dart ('k') | utils/tests/pub/dev_dependency_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; 5 library descriptor.tar;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import 'dart:async'; 8 import 'dart:async';
9 9
10 import '../../../../pkg/pathos/lib/path.dart' as path; 10 import 'package:pathos/path.dart' as path;
11 import '../../../../pkg/scheduled_test/lib/scheduled_test.dart'; 11 import 'package:scheduled_test/scheduled_test.dart';
12 import '../../../../pkg/scheduled_test/lib/descriptor.dart'; 12 import 'package:scheduled_test/descriptor.dart';
13 13
14 import '../../../pub/io.dart'; 14 import '../../../pub/io.dart';
15 import '../../../pub/utils.dart'; 15 import '../../../pub/utils.dart';
16 16
17 /// Describes a tar file and its contents. 17 /// Describes a tar file and its contents.
18 class TarFileDescriptor extends DirectoryDescriptor { 18 class TarFileDescriptor extends DirectoryDescriptor {
19 TarFileDescriptor(String name, List<Descriptor> contents) 19 TarFileDescriptor(String name, List<Descriptor> contents)
20 : super(name, contents); 20 : super(name, contents);
21 21
22 /// Creates the files and directories within this tar file, then archives 22 /// Creates the files and directories within this tar file, then archives
(...skipping 21 matching lines...) Expand all
44 throw "TODO(nweiz): implement this"; 44 throw "TODO(nweiz): implement this";
45 } 45 }
46 46
47 Stream<List<int>> read() { 47 Stream<List<int>> read() {
48 return new Stream<List<int>>.fromFuture(withTempDir((tempDir) { 48 return new Stream<List<int>>.fromFuture(withTempDir((tempDir) {
49 return create(tempDir).then((_) => 49 return create(tempDir).then((_) =>
50 readBinaryFile(path.join(tempDir, name))); 50 readBinaryFile(path.join(tempDir, name)));
51 })); 51 }));
52 } 52 }
53 } 53 }
OLDNEW
« no previous file with comments | « utils/tests/pub/descriptor/git.dart ('k') | utils/tests/pub/dev_dependency_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698