Loading packages/SystemUI/tests/src/com/android/keyguard/KeyguardClockSwitchControllerTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -226,7 +226,7 @@ public class KeyguardClockSwitchControllerTest extends SysuiTestCase { } @Test public void testDetachRemovesSmartspaceView() { public void testDetachDisconnectsSmartspace() { when(mSmartspaceController.isEnabled()).thenReturn(true); when(mSmartspaceController.buildAndConnectView(any())).thenReturn(mFakeSmartspaceView); mController.init(); Loading @@ -237,7 +237,7 @@ public class KeyguardClockSwitchControllerTest extends SysuiTestCase { verify(mView).addOnAttachStateChangeListener(listenerArgumentCaptor.capture()); listenerArgumentCaptor.getValue().onViewDetachedFromWindow(mView); verify(mView).removeView(mFakeSmartspaceView); verify(mSmartspaceController).disconnect(); } @Test Loading Loading
packages/SystemUI/tests/src/com/android/keyguard/KeyguardClockSwitchControllerTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -226,7 +226,7 @@ public class KeyguardClockSwitchControllerTest extends SysuiTestCase { } @Test public void testDetachRemovesSmartspaceView() { public void testDetachDisconnectsSmartspace() { when(mSmartspaceController.isEnabled()).thenReturn(true); when(mSmartspaceController.buildAndConnectView(any())).thenReturn(mFakeSmartspaceView); mController.init(); Loading @@ -237,7 +237,7 @@ public class KeyguardClockSwitchControllerTest extends SysuiTestCase { verify(mView).addOnAttachStateChangeListener(listenerArgumentCaptor.capture()); listenerArgumentCaptor.getValue().onViewDetachedFromWindow(mView); verify(mView).removeView(mFakeSmartspaceView); verify(mSmartspaceController).disconnect(); } @Test Loading