Fix tests
Change-Id: I8b750a87e6852d60ac2f8f61a955b1296cef759b Fixes: 74234076 Test: robotests
This commit is contained in:
@@ -18,14 +18,20 @@
|
|||||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
||||||
android:key="fake_title_key"
|
android:key="fake_title_key"
|
||||||
android:title="screen_title"
|
android:title="screen_title">
|
||||||
settings:controller="com.android.settings.slices.FakePreferenceController">
|
|
||||||
|
|
||||||
<Preference
|
<Preference
|
||||||
android:key="key"
|
android:key="key1"
|
||||||
android:title="title"
|
android:title="title"
|
||||||
android:icon="@drawable/ic_android"
|
android:icon="@drawable/ic_android"
|
||||||
android:summary="summary"
|
android:summary="summary1"
|
||||||
settings:controller="com.android.settings.core.BadPreferenceController"/>
|
settings:controller="com.android.settings.core.BadPreferenceController"/>
|
||||||
|
|
||||||
|
<Preference
|
||||||
|
android:key="key2"
|
||||||
|
android:title="title"
|
||||||
|
android:icon="@drawable/ic_android"
|
||||||
|
android:summary="summary2"
|
||||||
|
settings:controller="com.android.settings.slices.FakePreferenceController"/>
|
||||||
|
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
@@ -17,8 +17,7 @@
|
|||||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
||||||
android:key="fake_title_key"
|
android:key="fake_title_key"
|
||||||
android:title="screen_title"
|
android:title="screen_title">
|
||||||
settings:controller="com.android.settings.slices.FakePreferenceController">
|
|
||||||
|
|
||||||
<Preference
|
<Preference
|
||||||
android:key="key"
|
android:key="key"
|
||||||
|
@@ -116,7 +116,7 @@ public class BaseSearchIndexProviderTest {
|
|||||||
final List<AbstractPreferenceController> controllers =
|
final List<AbstractPreferenceController> controllers =
|
||||||
provider.getPreferenceControllers(mContext);
|
provider.getPreferenceControllers(mContext);
|
||||||
|
|
||||||
assertThat(controllers).hasSize(3);
|
assertThat(controllers).hasSize(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class NotAvailablePreferenceController
|
public static class NotAvailablePreferenceController
|
||||||
|
Reference in New Issue
Block a user