Merge "AR/FR: Settings changes."

This commit is contained in:
TreeHugger Robot
2018-01-19 03:54:32 +00:00
committed by Android (Google) Code Review
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);