From 145c65b86ca5a47eab92ee3a4ee507eac2268186 Mon Sep 17 00:00:00 2001 From: Nate Bosch Date: Tue, 8 Dec 2020 13:59:19 -0800 Subject: [PATCH] Pass a Uri to package:http APIs Prepare for https://github.com/dart-lang/http/issues/375 --- CHANGELOG.md | 2 ++ pubspec.yaml | 2 +- test/oauth2_flows/metadata_server_test.dart | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8599b56..e0947c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## 0.2.12+2-dev + ## 0.2.12+1 * Removed a `dart:async` import that isn't required for \>=Dart 2.1. diff --git a/pubspec.yaml b/pubspec.yaml index b13d517..eb192d0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: googleapis_auth -version: 0.2.12+1 +version: 0.2.12+2-dev author: Dart Team description: Obtain Access credentials for Google services using OAuth 2.0 homepage: https://github.com/dart-lang/googleapis_auth diff --git a/test/oauth2_flows/metadata_server_test.dart b/test/oauth2_flows/metadata_server_test.dart index 95a710c..7abe859 100644 --- a/test/oauth2_flows/metadata_server_test.dart +++ b/test/oauth2_flows/metadata_server_test.dart @@ -95,7 +95,7 @@ main() { var flow = new MetadataServerAuthorizationFlow(mockClient( expectAsync1((request) { if (requestNr++ == 0) - return transportFailure.get('http://failure'); + return transportFailure.get(Uri.http('failure', '')); else return successfulScopes(request); }, count: 2), @@ -110,7 +110,7 @@ main() { if (requestNr++ == 0) return successfulAccessToken(request); else - return transportFailure.get('http://failure'); + return transportFailure.get(Uri.http('failure', '')); }, count: 2), expectClose: false)); expect(flow.run(), throwsA(isTransportException));