File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
auth/src/test/java/com/firebase/ui/auth Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -83,12 +83,14 @@ public void testCreatingStartIntent() {
83
83
new IdpConfig .Builder (AuthUI .GOOGLE_PROVIDER ).build (),
84
84
new IdpConfig .Builder (AuthUI .FACEBOOK_PROVIDER ).build ()))
85
85
.setTosUrl (TestConstants .TOS_URL )
86
+ .setPrivacyPolicyUrl (TestConstants .PRIVACY_URL )
86
87
.build ()
87
88
.getParcelableExtra (ExtraConstants .EXTRA_FLOW_PARAMS );
88
89
89
90
assertEquals (3 , flowParameters .providerInfo .size ());
90
91
assertEquals (mFirebaseApp .getName (), flowParameters .appName );
91
92
assertEquals (TestConstants .TOS_URL , flowParameters .termsOfServiceUrl );
93
+ assertEquals (TestConstants .PRIVACY_URL , flowParameters .privacyPolicyUrl );
92
94
assertEquals (AuthUI .getDefaultTheme (), flowParameters .themeId );
93
95
}
94
96
}
Original file line number Diff line number Diff line change @@ -22,5 +22,6 @@ public class TestConstants {
22
22
public static final String NAME = "Test Testerson" ;
23
23
public static final String TOKEN = "token" ;
24
24
public static final String TOS_URL = "http://www.google.com" ;
25
+ public static final String PRIVACY_URL = "https://www.google.com/policies/privacy/" ;
25
26
public static final Uri PHOTO_URI = Uri .parse ("http://example.com/profile.png" );
26
27
}
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ public static FlowParameters getFlowParameters(List<String> providerIds) {
62
62
AuthUI .getDefaultTheme (),
63
63
AuthUI .NO_LOGO ,
64
64
null /* tosUrl */ ,
65
+ null /* privacyPolicyUrl */ ,
65
66
true /* smartLockEnabled */ ,
66
67
true /* allowNewEmailAccounts */ ,
67
68
false /* isReauth */ ,
You can’t perform that action at this time.
0 commit comments