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

Unified Diff: sdk/lib/_internal/pub/test/version_test.dart

Issue 17071010: Cleanup MatchState in pub. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 | « sdk/lib/_internal/pub/test/version_solver_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/test/version_test.dart
===================================================================
--- sdk/lib/_internal/pub/test/version_test.dart (revision 24041)
+++ sdk/lib/_internal/pub/test/version_test.dart (working copy)
@@ -430,14 +430,14 @@
VersionConstraintMatcher(this._expected, this._allow);
- bool matches(item, MatchState matchState) => (item is VersionConstraint) &&
+ bool matches(item, Map matchState) => (item is VersionConstraint) &&
_expected.every((version) => item.allows(version) == _allow);
Description describe(Description description) =>
description.add(' ${_allow ? "allows" : "does not allow"} versions');
Description describeMismatch(item, Description mismatchDescription,
- MatchState matchState, bool verbose) {
+ Map matchState, bool verbose) {
if (item is! VersionConstraint) {
mismatchDescription.add('was not a VersionConstraint');
return mismatchDescription;
« no previous file with comments | « sdk/lib/_internal/pub/test/version_solver_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698