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

Side by Side Diff: test/utils.dart

Issue 1311323002: Modernize the style. (Closed) Base URL: git@github.com:dart-lang/oauth2.git@master
Patch Set: Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library utils;
6
7 import 'dart:async'; 5 import 'dart:async';
8 import 'dart:collection' show Queue; 6 import 'dart:collection' show Queue;
9 7
10 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
11 import 'package:http/testing.dart'; 9 import 'package:http/testing.dart';
12 import 'package:oauth2/oauth2.dart' as oauth2; 10 import 'package:oauth2/oauth2.dart' as oauth2;
13 import 'package:test/test.dart'; 11 import 'package:test/test.dart';
14 12
15 class ExpectClient extends MockClient { 13 class ExpectClient extends MockClient {
16 final Queue<MockClientHandler> _handlers; 14 final Queue<MockClientHandler> _handlers;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 61
64 /// A matcher for functions that throw ExpirationException. 62 /// A matcher for functions that throw ExpirationException.
65 const Matcher throwsExpirationException = 63 const Matcher throwsExpirationException =
66 const Throws(isExpirationException); 64 const Throws(isExpirationException);
67 65
68 class _ExpirationException extends TypeMatcher { 66 class _ExpirationException extends TypeMatcher {
69 const _ExpirationException() : super("ExpirationException"); 67 const _ExpirationException() : super("ExpirationException");
70 bool matches(item, Map matchState) => 68 bool matches(item, Map matchState) =>
71 item is oauth2.ExpirationException; 69 item is oauth2.ExpirationException;
72 } 70 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698