Searched refs:mAccountSyncSettings (Results 1 – 1 of 1) sorted by relevance
47 private AccountSyncSettings mAccountSyncSettings; field in AccountSyncSettingsTest52 mAccountSyncSettings = spy(new TestAccountSyncSettings(mContext)); in setUp()62 when(mAccountSyncSettings.getActivity()).thenReturn(mock(FragmentActivity.class)); in onPreferenceTreeClick_nullAuthority_shouldNotCrash()66 ReflectionHelpers.setField(mAccountSyncSettings, "mUserHandle", UserHandle.CURRENT); in onPreferenceTreeClick_nullAuthority_shouldNotCrash()68 mAccountSyncSettings.onPreferenceTreeClick(preference); in onPreferenceTreeClick_nullAuthority_shouldNotCrash()74 assertThat(mAccountSyncSettings.enabledSyncNowMenu()).isFalse(); in enabledSyncNowMenu_noSyncStateSwitchPreference_returnFalse()82 mAccountSyncSettings.getPreferenceScreen().addPreference(preference); in enabledSyncNowMenu_addSyncStateSwitchPreferenceAndSwitchOn_returnTrue()84 assertThat(mAccountSyncSettings.enabledSyncNowMenu()).isTrue(); in enabledSyncNowMenu_addSyncStateSwitchPreferenceAndSwitchOn_returnTrue()92 mAccountSyncSettings.getPreferenceScreen().addPreference(preference); in enabledSyncNowMenu_addSyncStateSwitchPreferenceAndSwitchOff_returnFalse()94 assertThat(mAccountSyncSettings.enabledSyncNowMenu()).isFalse(); in enabledSyncNowMenu_addSyncStateSwitchPreferenceAndSwitchOff_returnFalse()