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

Unified Diff: pkg/http/test/utils.dart

Issue 17090006: Change MatchState to Map. (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 | « pkg/http/test/multipart_test.dart ('k') | pkg/oauth2/test/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/test/utils.dart
===================================================================
--- pkg/http/test/utils.dart (revision 24041)
+++ pkg/http/test/utils.dart (working copy)
@@ -149,7 +149,7 @@
_Parse(this._matcher);
- bool matches(item, MatchState matchState) {
+ bool matches(item, Map matchState) {
if (item is! String) return false;
var parsed;
@@ -177,7 +177,7 @@
class _HttpException extends TypeMatcher {
const _HttpException() : super("HttpException");
- bool matches(item, MatchState matchState) => item is HttpException;
+ bool matches(item, Map matchState) => item is HttpException;
}
/// A matcher for RedirectLimitExceededExceptions.
@@ -192,7 +192,7 @@
const _RedirectLimitExceededException() :
super("RedirectLimitExceededException");
- bool matches(item, MatchState matchState) =>
+ bool matches(item, Map matchState) =>
item is RedirectException && item.message == "Redirect limit exceeded";
}
@@ -205,5 +205,5 @@
class _SocketException extends TypeMatcher {
const _SocketException() : super("SocketException");
- bool matches(item, MatchState matchState) => item is SocketException;
+ bool matches(item, Map matchState) => item is SocketException;
}
« no previous file with comments | « pkg/http/test/multipart_test.dart ('k') | pkg/oauth2/test/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698