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

Unified Diff: quiver/lib/testing/src/async/async.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « quiver/lib/testing/runtime.dart ('k') | quiver/lib/testing/src/async/fake_async.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: quiver/lib/testing/src/async/async.dart
diff --git a/quiver/lib/testing/src/async/async.dart b/quiver/lib/testing/src/async/async.dart
deleted file mode 100644
index 881efc726ebfe7045a34f460436a60a68a43595a..0000000000000000000000000000000000000000
--- a/quiver/lib/testing/src/async/async.dart
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2013 Google Inc. All Rights Reserved.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-part of quiver.testing.async;
-
-/**
- * DEPRECATED: Use a much more feature-rich FakeAsync instead.
- *
- * A [Timer] implementation that stores its duration and callback for access
- * in tests.
- */
-@deprecated
-class FakeTimer implements Timer {
- Duration duration;
- var callback;
- var onCancel;
-
- /**
- * Sets this timers [duration] and [callback] and returns [this].
- *
- * This method is usable as a [CreateTimer] or [CreateTimerPeriodic]
- * function. In tests, construct a FakeTimer so that you have a refernece to
- * it, then pass [create] to the function or class under test.
- */
- FakeTimer create(Duration duration, callback) {
- if (this.duration != null) {
- throw new StateError("FakeTimer.create already called");
- }
- this.duration = duration;
- this.callback = callback;
- return this;
- }
-
- void cancel() {
- if (onCancel != null) onCancel();
- }
-
- bool isActive = true;
-}
« no previous file with comments | « quiver/lib/testing/runtime.dart ('k') | quiver/lib/testing/src/async/fake_async.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698