Log screen lock settings using its own constant
Bug: 32953042 Test: manual Change-Id: Ic72a2b0e7d2a176e03f5e1f39e09b09430268e64
This commit is contained in:
@@ -46,7 +46,7 @@ public class ScreenLockSettings extends DashboardFragment
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getMetricsCategory() {
|
public int getMetricsCategory() {
|
||||||
return MetricsProto.MetricsEvent.SECURITY;
|
return MetricsProto.MetricsEvent.SCREEN_LOCK_SETTINGS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -48,7 +48,8 @@ public class ScreenLockSettingsTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void verifyConstants() {
|
public void verifyConstants() {
|
||||||
assertThat(mSettings.getMetricsCategory()).isEqualTo(MetricsProto.MetricsEvent.SECURITY);
|
assertThat(mSettings.getMetricsCategory())
|
||||||
|
.isEqualTo(MetricsProto.MetricsEvent.SCREEN_LOCK_SETTINGS);
|
||||||
assertThat(mSettings.getPreferenceScreenResId()).isEqualTo(R.xml.screen_lock_settings);
|
assertThat(mSettings.getPreferenceScreenResId()).isEqualTo(R.xml.screen_lock_settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user