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

Side by Side Diff: pkg/oauth2/lib/src/expiration_exception.dart

Issue 11412083: Fix OAuth2 tests, and disable them on non-dart:io platforms. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
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 expiration_exception; 5 library expiration_exception;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'credentials.dart';
10
9 /// An exception raised when attempting to use expired OAuth2 credentials. 11 /// An exception raised when attempting to use expired OAuth2 credentials.
10 class ExpirationException implements Exception { 12 class ExpirationException implements Exception {
11 /// The expired credentials. 13 /// The expired credentials.
12 final Credentials credentials; 14 final Credentials credentials;
13 15
14 /// Creates an ExpirationException. 16 /// Creates an ExpirationException.
15 ExpirationException(this.credentials); 17 ExpirationException(this.credentials);
16 18
17 /// Provides a string description of the ExpirationException. 19 /// Provides a string description of the ExpirationException.
18 String toString() => 20 String toString() =>
19 "OAuth2 credentials have expired and can't be refreshed."; 21 "OAuth2 credentials have expired and can't be refreshed.";
20 } 22 }
OLDNEW
« no previous file with comments | « pkg/oauth2/lib/src/authorization_exception.dart ('k') | pkg/oauth2/test/authorization_code_grant_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698