AR/FR: Settings changes.

The basic AOSP settings infrastrucutre. Will add the Google specific
resources and tests to GoogleSettings in the next AR/FR change.

Test: make DEBUG_ROBOLECTRIC=1 RunSettingsRoboTests -j40
ROBOTEST_FILTER=com.android.settings.MasterClearTest.java

Change-Id: I7278b5c6d2a72e71d81c7fa5f937a2313d6c322c
This commit is contained in:
Carlos Valdivia
2018-01-16 13:59:31 -08:00
parent 18a9d7bad0
commit a9736ed257
3 changed files with 49 additions and 2 deletions

View File

@@ -160,6 +160,13 @@ public class MasterClearTest {
assertThat(componentName.getPackageName()).isEqualTo(intent.getPackage());
}
@Test
public void testTryShowAccountConfirmation_unsupported() {
doReturn(mActivity).when(mMasterClear).getActivity();
/* Using the default resources, account confirmation shouldn't trigger */
assertThat(mMasterClear.tryShowAccountConfirmation()).isFalse();
}
private void initScrollView(int height, int scrollY, int childBottom) {
when(mScrollView.getHeight()).thenReturn(height);
when(mScrollView.getScrollY()).thenReturn(scrollY);