Merge "Update test for smartspace disconnect" into sc-v2-dev am: 0c70126626
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15806058 Change-Id: I205caa1a80d760398d95e71049098721717f7366
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user