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

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

Issue 11770004: Rename Date to DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and keep Backwards-compatibility class Date. 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 | « utils/testrunner/standard_test_runner.dart ('k') | utils/tests/pub/test_pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/oauth2_test.dart
diff --git a/utils/tests/pub/oauth2_test.dart b/utils/tests/pub/oauth2_test.dart
index 560e4a5b2972b50301cfafdb70b6a762fc6697fc..a204e665b09d8cb53789df5b6d08975b823044a0 100644
--- a/utils/tests/pub/oauth2_test.dart
+++ b/utils/tests/pub/oauth2_test.dart
@@ -57,7 +57,7 @@ main() {
var server = new ScheduledServer();
credentialsFile(server, 'access token',
refreshToken: 'refresh token',
- expiration: new Date.now().subtract(new Duration(hours: 1)))
+ expiration: new DateTime.now().subtract(new Duration(hours: 1)))
.scheduleCreate();
var pub = startPubLish(server);
@@ -95,7 +95,7 @@ main() {
'authenticates again and saves credentials.json', () {
var server = new ScheduledServer();
credentialsFile(server, 'access token',
- expiration: new Date.now().subtract(new Duration(hours: 1)))
+ expiration: new DateTime.now().subtract(new Duration(hours: 1)))
.scheduleCreate();
var pub = startPubLish(server);
« no previous file with comments | « utils/testrunner/standard_test_runner.dart ('k') | utils/tests/pub/test_pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698