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

Unified Diff: pkg/scheduled_test/lib/src/descriptor/descriptor.dart

Issue 812253002: Delete a bunch of packages that are now on GitHub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Un-delete http 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/scheduled_test/lib/src/descriptor/descriptor.dart
diff --git a/pkg/scheduled_test/lib/src/descriptor/descriptor.dart b/pkg/scheduled_test/lib/src/descriptor/descriptor.dart
deleted file mode 100644
index 2be0b59982909319fe8bc8b832cc0bbae4008dc9..0000000000000000000000000000000000000000
--- a/pkg/scheduled_test/lib/src/descriptor/descriptor.dart
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2013, 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.
-
-library descriptor.descriptor;
-
-import 'dart:async';
-
-/// The base class for various declarative descriptions of filesystem entries.
-/// All asynchronous operations on descriptors are [schedule]d unless otherwise
-/// noted.
-abstract class Descriptor {
- /// The name of this entry.
- final String name;
-
- Descriptor(this.name);
-
- /// Schedules the creation of the described entry within the [parent]
- /// directory. Returns a [Future] that completes after the creation is done.
- ///
- /// [parent] defaults to [defaultRoot].
- Future create([String parent]);
-
- /// Schedules the validation of the described entry. This validates that the
- /// physical file system under [parent] contains an entry that matches the one
- /// described by [this]. Returns a [Future] that completes to `null` if the
- /// entry is valid, or throws an error if it failed.
- ///
- /// [parent] defaults to [defaultRoot].
- Future validate([String parent]);
-
- /// An unscheduled version of [validate]. This is useful if validation errors
- /// need to be caught, since otherwise they'd be registered by the schedule.
- Future validateNow([String parent]);
-
- /// Returns a detailed tree-style description of [this].
- String describe();
-}
-
-/// An interface for descriptors that can load the contents of sub-descriptors.
-abstract class LoadableDescriptor implements Descriptor {
- /// Treats [this] as an in-memory filesystem and returns a stream of the
- /// contents of the child entry located at [path]. This only works if [this]
- /// is a directory entry. This operation is not [schedule]d.
- ///
- /// This method uses POSIX paths regardless of the underlying operating
- /// system.
- ///
- /// All errors in loading the file will be passed through the returned
- /// [Stream].
- Stream<List<int>> load(String pathToLoad);
-}
-
-/// An interface for descriptors whose contents can be read.
-abstract class ReadableDescriptor implements Descriptor {
- /// Returns the contents of [this] as a stream. This only works if [this] is a
- /// file entry. This operation is not [schedule]d.
- ///
- /// All errors in loading the file will be passed through the returned
- /// [Stream].
- Stream<List<int>> read();
-}

Powered by Google App Engine
This is Rietveld 408576698