Merge "Fix tests for SecurityAdvancedSettings." into main

This commit is contained in:
Elliot Sisteron
2024-02-05 16:59:23 +00:00
committed by Android (Google) Code Review

View File

@@ -107,7 +107,7 @@ public class SecurityAdvancedSettingsTest {
@Test
public void whenSafetyCenterIsEnabled_pageIndexExcluded() throws Exception {
when(mSafetyCenterManagerWrapper.isEnabled(any())).thenReturn(false);
when(mSafetyCenterManagerWrapper.isEnabled(any())).thenReturn(true);
BaseSearchIndexProvider indexProvider = SecurityAdvancedSettings.SEARCH_INDEX_DATA_PROVIDER;
List<String> allXmlKeys = TestUtils.getAllXmlKeys(mContext, indexProvider);