From 4996a5407b4bc3d5a905f62e157d8cbb93fad3aa Mon Sep 17 00:00:00 2001 From: Christian Biesinger Date: Tue, 7 Jun 2022 13:32:38 -0700 Subject: [PATCH] [FedCM] Make revoke test do actual network requests Instead of using a mojo mock. This tests a lot more of our code. Bug: 1309251 Change-Id: I079cbbf962ed8b95870bd51fdff35f6f37ca3974 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3680732 Commit-Queue: Christian Biesinger Reviewed-by: Yi Gu Cr-Commit-Position: refs/heads/main@{#1011646} --- .../fedcm-revoke.https.html.headers | 1 - ...https.html => fedcm-revoke.sub.https.html} | 35 ++++++++++++------- .../fedcm-revoke.sub.https.html.sub.headers | 1 + credential-management/support/revoke.py | 6 ++++ 4 files changed, 30 insertions(+), 13 deletions(-) delete mode 100644 credential-management/fedcm-revoke.https.html.headers rename credential-management/{fedcm-revoke.https.html => fedcm-revoke.sub.https.html} (51%) create mode 100644 credential-management/fedcm-revoke.sub.https.html.sub.headers create mode 100644 credential-management/support/revoke.py diff --git a/credential-management/fedcm-revoke.https.html.headers b/credential-management/fedcm-revoke.https.html.headers deleted file mode 100644 index fd82d505dd48e2..00000000000000 --- a/credential-management/fedcm-revoke.https.html.headers +++ /dev/null @@ -1 +0,0 @@ -Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; connect-src https://idp.example diff --git a/credential-management/fedcm-revoke.https.html b/credential-management/fedcm-revoke.sub.https.html similarity index 51% rename from credential-management/fedcm-revoke.https.html rename to credential-management/fedcm-revoke.sub.https.html index f0c3e5eb2d20e8..79a9a872f46cdd 100644 --- a/credential-management/fedcm-revoke.https.html +++ b/credential-management/fedcm-revoke.sub.https.html @@ -2,16 +2,17 @@ FederatedCredential.revoke() promise resolution - +