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

Unified Diff: ios/web/web_state/js/credential_util_unittest.mm

Issue 1723583004: CREDENTIAL: Convert federations from URLs to origins throughout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iOS2 Created 4 years, 10 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
Index: ios/web/web_state/js/credential_util_unittest.mm
diff --git a/ios/web/web_state/js/credential_util_unittest.mm b/ios/web/web_state/js/credential_util_unittest.mm
index 50e05da51617f953782a01d2bfa762bdea347dbc..92d8e66eb73f865888f21e97208a218c12a57c2c 100644
--- a/ios/web/web_state/js/credential_util_unittest.mm
+++ b/ios/web/web_state/js/credential_util_unittest.mm
@@ -13,6 +13,7 @@
#include "testing/gtest_mac.h"
#include "testing/platform_test.h"
#include "url/gurl.h"
+#include "url/origin.h"
namespace web {
namespace {
@@ -56,7 +57,8 @@ Credential GetTestFederatedCredential() {
credential.id = base::ASCIIToUTF16(kTestCredentialID);
credential.name = base::ASCIIToUTF16(kTestCredentialName);
credential.avatar_url = GURL(kTestCredentialAvatarURL);
- credential.federation_url = GURL(kTestCredentialFederationURL);
+ credential.federation_origin =
+ url::Origin(GURL(kTestCredentialFederationURL));
return credential;
}
@@ -80,7 +82,8 @@ scoped_ptr<base::DictionaryValue> GetTestFederatedCredentialDictionaryValue() {
value->SetString("id", kTestCredentialID);
value->SetString("name", kTestCredentialName);
value->SetString("avatarURL", kTestCredentialAvatarURL);
- value->SetString("federation", kTestCredentialFederationURL);
+ value->SetString("federation",
+ url::Origin(GURL(kTestCredentialFederationURL)).Serialize());
return value;
}

Powered by Google App Engine
This is Rietveld 408576698