Merge "Add getDescendants to Settings Slice Provider" into pi-dev

This commit is contained in:
TreeHugger Robot
2018-04-17 19:21:20 +00:00
committed by Android (Google) Code Review
6 changed files with 392 additions and 33 deletions

View File

@@ -295,14 +295,16 @@ public class SliceBuilderUtilsTest {
assertThat(pathPair.second).isEqualTo(KEY);
}
@Test(expected = IllegalArgumentException.class)
@Test
public void getPathData_noKey_returnsNull() {
final Uri uri = new Uri.Builder()
.authority(SettingsSliceProvider.SLICE_AUTHORITY)
.appendPath(SettingsSlicesContract.PATH_SETTING_ACTION)
.build();
SliceBuilderUtils.getPathData(uri);
final Pair<Boolean, String> pathPair = SliceBuilderUtils.getPathData(uri);
assertThat(pathPair).isNull();
}
@Test