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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user