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

Unified Diff: utils/tests/pub/curl_client_test.dart

Issue 12088056: Fix build for throwsStateError: remove duplicate definitions in other tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/oauth2/test/utils.dart ('k') | utils/tests/pub/error_group_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/curl_client_test.dart
diff --git a/utils/tests/pub/curl_client_test.dart b/utils/tests/pub/curl_client_test.dart
index ba57e21937838eb2d7062e02d6c694f7314b2a42..924e994ec4d775187e4dc718928e49b17e45461f 100644
--- a/utils/tests/pub/curl_client_test.dart
+++ b/utils/tests/pub/curl_client_test.dart
@@ -168,19 +168,6 @@ class _Parse extends BaseMatcher {
}
}
-// TODO(nweiz): remove this once it's built in to unittest (issue 7922).
-/// A matcher for StateErrors.
-const isStateError = const _StateError();
-
-/// A matcher for functions that throw StateError.
-const Matcher throwsStateError =
- const Throws(isStateError);
-
-class _StateError extends TypeMatcher {
- const _StateError() : super("StateError");
- bool matches(item, MatchState matchState) => item is StateError;
-}
-
/// A matcher for HttpExceptions.
const isHttpException = const _HttpException();
« no previous file with comments | « pkg/oauth2/test/utils.dart ('k') | utils/tests/pub/error_group_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698