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

Unified Diff: pkg/stack_trace/test/utils.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
« no previous file with comments | « pkg/stack_trace/test/trace_test.dart ('k') | pkg/stack_trace/test/vm_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/stack_trace/test/utils.dart
diff --git a/pkg/stack_trace/test/utils.dart b/pkg/stack_trace/test/utils.dart
deleted file mode 100644
index ed756313c8fe40eec3eb053e25596fc63bb4210d..0000000000000000000000000000000000000000
--- a/pkg/stack_trace/test/utils.dart
+++ /dev/null
@@ -1,37 +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 stack_trace.test.utils;
-
-import 'package:unittest/unittest.dart';
-
-/// Returns a matcher that runs [matcher] against a [Frame]'s `member` field.
-Matcher frameMember(matcher) =>
- transform((frame) => frame.member, matcher, 'member');
-
-/// Returns a matcher that runs [matcher] against a [Frame]'s `library` field.
-Matcher frameLibrary(matcher) =>
- transform((frame) => frame.library, matcher, 'library');
-
-/// Returns a matcher that runs [transformation] on its input, then matches
-/// the output against [matcher].
-///
-/// [description] should be a noun phrase that describes the relation of the
-/// output of [transformation] to its input.
-Matcher transform(transformation(value), matcher, String description) =>
- new _TransformMatcher(transformation, wrapMatcher(matcher), description);
-
-class _TransformMatcher extends Matcher {
- final Function _transformation;
- final Matcher _matcher;
- final String _description;
-
- _TransformMatcher(this._transformation, this._matcher, this._description);
-
- bool matches(item, Map matchState) =>
- _matcher.matches(_transformation(item), matchState);
-
- Description describe(Description description) =>
- description.add(_description).add(' ').addDescriptionOf(_matcher);
-}
« no previous file with comments | « pkg/stack_trace/test/trace_test.dart ('k') | pkg/stack_trace/test/vm_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698