| Index: chrome/browser/password_manager/native_backend_libsecret_unittest.cc
|
| diff --git a/chrome/browser/password_manager/native_backend_libsecret_unittest.cc b/chrome/browser/password_manager/native_backend_libsecret_unittest.cc
|
| index 220966d8e7bf9aa4b6a3054f68b94a4713165813..fe5fc8617a245968e71c99b7c3563c3edaa1ef1b 100644
|
| --- a/chrome/browser/password_manager/native_backend_libsecret_unittest.cc
|
| +++ b/chrome/browser/password_manager/native_backend_libsecret_unittest.cc
|
| @@ -695,14 +695,25 @@ TEST_F(NativeBackendLibsecretTest, PSLUpdatingStrictAddLogin) {
|
|
|
| TEST_F(NativeBackendLibsecretTest, FetchFederatedCredentialOnHTTPS) {
|
| other_auth_.signon_realm = "federation://www.example.com/google.com";
|
| + other_auth_.origin = GURL("https://www.example.com/");
|
| other_auth_.federation_origin = url::Origin(GURL("https://google.com/"));
|
| EXPECT_TRUE(CheckCredentialAvailability(other_auth_,
|
| GURL("https://www.example.com/"),
|
| PasswordForm::SCHEME_HTML, nullptr));
|
| }
|
|
|
| +TEST_F(NativeBackendLibsecretTest, FetchFederatedCredentialOnLocalhost) {
|
| + other_auth_.signon_realm = "federation://localhost/google.com";
|
| + other_auth_.origin = GURL("http://localhost:8080/");
|
| + other_auth_.federation_origin = url::Origin(GURL("https://google.com/"));
|
| + EXPECT_TRUE(CheckCredentialAvailability(other_auth_,
|
| + GURL("http://localhost:8080/"),
|
| + PasswordForm::SCHEME_HTML, nullptr));
|
| +}
|
| +
|
| TEST_F(NativeBackendLibsecretTest, DontFetchFederatedCredentialOnHTTP) {
|
| other_auth_.signon_realm = "federation://www.example.com/google.com";
|
| + other_auth_.origin = GURL("https://www.example.com/");
|
| other_auth_.federation_origin = url::Origin(GURL("https://google.com/"));
|
| EXPECT_FALSE(CheckCredentialAvailability(other_auth_,
|
| GURL("http://www.example.com/"),
|
| @@ -711,6 +722,7 @@ TEST_F(NativeBackendLibsecretTest, DontFetchFederatedCredentialOnHTTP) {
|
|
|
| TEST_F(NativeBackendLibsecretTest, FetchPSLMatchedFederatedCredentialOnHTTPS) {
|
| other_auth_.signon_realm = "federation://www.sub.example.com/google.com";
|
| + other_auth_.origin = GURL("https://www.sub.example.com/");
|
| other_auth_.federation_origin = url::Origin(GURL("https://google.com/"));
|
| EXPECT_TRUE(CheckCredentialAvailability(other_auth_,
|
| GURL("https://www.example.com/"),
|
| @@ -720,6 +732,7 @@ TEST_F(NativeBackendLibsecretTest, FetchPSLMatchedFederatedCredentialOnHTTPS) {
|
| TEST_F(NativeBackendLibsecretTest,
|
| DontFetchPSLMatchedFederatedCredentialOnHTTP) {
|
| other_auth_.signon_realm = "federation://www.sub.example.com/google.com";
|
| + other_auth_.origin = GURL("https://www.sub.example.com/");
|
| other_auth_.federation_origin = url::Origin(GURL("https://google.com/"));
|
| EXPECT_FALSE(CheckCredentialAvailability(other_auth_,
|
| GURL("http://www.example.com/"),
|
|
|