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:
@@ -121,7 +121,7 @@ public class SliceDataConverterTest {
|
||||
assertThat(fakeSlice.getScreenTitle()).isEqualTo(FAKE_SCREEN_TITLE);
|
||||
assertThat(fakeSlice.getKeywords()).isNull();
|
||||
assertThat(fakeSlice.getIconResource()).isNotNull();
|
||||
assertThat(fakeSlice.getUri().toSafeString())
|
||||
assertThat(fakeSlice.getUri().toString())
|
||||
.isEqualTo("content://com.android.settings.slices/action/key");
|
||||
assertThat(fakeSlice.getFragmentClassName()).isEqualTo(FAKE_FRAGMENT_CLASSNAME);
|
||||
assertThat(fakeSlice.getPreferenceController()).isEqualTo(FAKE_CONTROLLER_NAME);
|
||||
@@ -160,4 +160,4 @@ public class SliceDataConverterTest {
|
||||
|
||||
return serviceInfoList;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user