Skip to content

Commit 97c1df2

Browse files
committed
Fix auth library tests
1 parent cb92c8f commit 97c1df2

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

auth/src/test/java/com/firebase/ui/auth/AuthUITest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,14 @@ public void testCreatingStartIntent() {
8383
new IdpConfig.Builder(AuthUI.GOOGLE_PROVIDER).build(),
8484
new IdpConfig.Builder(AuthUI.FACEBOOK_PROVIDER).build()))
8585
.setTosUrl(TestConstants.TOS_URL)
86+
.setPrivacyPolicyUrl(TestConstants.PRIVACY_URL)
8687
.build()
8788
.getParcelableExtra(ExtraConstants.EXTRA_FLOW_PARAMS);
8889

8990
assertEquals(3, flowParameters.providerInfo.size());
9091
assertEquals(mFirebaseApp.getName(), flowParameters.appName);
9192
assertEquals(TestConstants.TOS_URL, flowParameters.termsOfServiceUrl);
93+
assertEquals(TestConstants.PRIVACY_URL, flowParameters.privacyPolicyUrl);
9294
assertEquals(AuthUI.getDefaultTheme(), flowParameters.themeId);
9395
}
9496
}

auth/src/test/java/com/firebase/ui/auth/testhelpers/TestConstants.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ public class TestConstants {
2222
public static final String NAME = "Test Testerson";
2323
public static final String TOKEN = "token";
2424
public static final String TOS_URL = "http://www.google.com";
25+
public static final String PRIVACY_URL = "https://www.google.com/policies/privacy/";
2526
public static final Uri PHOTO_URI = Uri.parse("http://example.com/profile.png");
2627
}

auth/src/test/java/com/firebase/ui/auth/testhelpers/TestHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public static FlowParameters getFlowParameters(List<String> providerIds) {
6262
AuthUI.getDefaultTheme(),
6363
AuthUI.NO_LOGO,
6464
null /* tosUrl */,
65+
null /* privacyPolicyUrl */,
6566
true /* smartLockEnabled */,
6667
true /* allowNewEmailAccounts */,
6768
false /* isReauth */,

0 commit comments

Comments
 (0)