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

Unified Diff: pkg/oauth2/test/client_test.dart

Issue 11783009: Big merge from experimental to bleeding edge. (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/authorization_code_grant_test.dart ('k') | pkg/oauth2/test/credentials_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/oauth2/test/client_test.dart
diff --git a/pkg/oauth2/test/client_test.dart b/pkg/oauth2/test/client_test.dart
index fba14a626e6479bde68464a0266688a391afb7c0..af8e7e47440d5d939d37584789ae87477ffb7f41 100644
--- a/pkg/oauth2/test/client_test.dart
+++ b/pkg/oauth2/test/client_test.dart
@@ -63,7 +63,7 @@ void main() {
return new Future.immediate(new http.Response('good job', 200));
});
- expect(client.read(requestUri).transform((_) {
+ expect(client.read(requestUri).then((_) {
expect(client.credentials.accessToken, equals('new access token'));
}), completes);
});
@@ -104,7 +104,7 @@ void main() {
}), 200, headers: {'content-type': 'application/json'}));
});
- expect(client.refreshCredentials().transform((_) {
+ expect(client.refreshCredentials().then((_) {
expect(client.credentials.accessToken, equals('new access token'));
}), completes);
});
@@ -156,7 +156,7 @@ void main() {
});
expect(
- client.get(requestUri).transform((response) => response.statusCode),
+ client.get(requestUri).then((response) => response.statusCode),
completion(equals(401)));
});
@@ -178,7 +178,7 @@ void main() {
});
expect(
- client.get(requestUri).transform((response) => response.statusCode),
+ client.get(requestUri).then((response) => response.statusCode),
completion(equals(401)));
});
@@ -198,7 +198,7 @@ void main() {
});
expect(
- client.get(requestUri).transform((response) => response.statusCode),
+ client.get(requestUri).then((response) => response.statusCode),
completion(equals(401)));
});
@@ -218,7 +218,7 @@ void main() {
});
expect(
- client.get(requestUri).transform((response) => response.statusCode),
+ client.get(requestUri).then((response) => response.statusCode),
completion(equals(401)));
});
});
« no previous file with comments | « pkg/oauth2/test/authorization_code_grant_test.dart ('k') | pkg/oauth2/test/credentials_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698