Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3017177 authored by Matt Pietal's avatar Matt Pietal Committed by Automerger Merge Worker
Browse files

Merge "Update test for smartspace disconnect" into sc-v2-dev am: 0c701266 am: 4aec9df3

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15806058

Change-Id: I183d840ffe48f5e9db88578deea9518b504c9767
parents 10ad6d75 4aec9df3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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();
@@ -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