Use Uri.toString() instead of Uri.toSafeString()
Uri.toSafeString strips out paths and shouldn't be used for situations other than logging. Bug: 232694281 Test: PtsPowerTestCases Change-Id: Iec835b738c3e928e922bd6a14573106f2ce4f526
This commit is contained in:
@@ -120,7 +120,7 @@ public class SearchFeatureProviderImplTest {
|
||||
final Intent searchIntent = mProvider.buildSearchIntent(mActivity, SettingsEnums.TESTING);
|
||||
final Uri referrer = searchIntent.getParcelableExtra(Intent.EXTRA_REFERRER);
|
||||
|
||||
assertThat(referrer.toSafeString()).isEqualTo(
|
||||
assertThat(referrer.toString()).isEqualTo(
|
||||
"android-app://" + mActivity.getPackageName() + "/" + SettingsEnums.TESTING);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user