diff options
author | Sean Pont <seanpont@google.com> | 2020-04-30 21:07:53 -0700 |
---|---|---|
committer | Sean Pont <seanpont@google.com> | 2020-04-30 21:16:48 -0700 |
commit | c110c362b70a27588e4ec625889a2c3ac7c174bf (patch) | |
tree | d1018f33299289f28fa9ba298d3ee61e378aeda2 /tests | |
parent | 0c1eaa74a81767cab163245badfc858e4298af57 (diff) | |
download | QuickAccessWallet-c110c362b70a27588e4ec625889a2c3ac7c174bf.tar.gz |
UI updates to quick access wallet overflow menu
Bug: 155439302
Test: manual
Test: atest QuickAccessWalletRoboTests
Change-Id: I8a1afeeab44f06bafe1a809274a9227c33a7fa2f
Diffstat (limited to 'tests')
-rw-r--r-- | tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/WalletPanelViewControllerTest.java | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/WalletPanelViewControllerTest.java b/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/WalletPanelViewControllerTest.java index 626546f..826cb2c 100644 --- a/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/WalletPanelViewControllerTest.java +++ b/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/WalletPanelViewControllerTest.java @@ -335,30 +335,6 @@ public class WalletPanelViewControllerTest { } @Test - public void onWalletCardsRetrieved_deviceLocked_doesNotShowOverflowMenu() { - when(mWalletClient.isWalletFeatureAvailableWhenDeviceLocked()).thenReturn(true); - mViewController.onDeviceLockStateChanged(true); - verify(mWalletClient).getWalletCards(any(), mRequestCaptor.capture(), - mCallbackCaptor.capture()); - List<WalletCard> cards = Arrays.asList(createWalletCard("c1"), createWalletCard("c2")); - GetWalletCardsResponse response = new GetWalletCardsResponse(cards, 0); - - mCallbackCaptor.getValue().onWalletCardsRetrieved(response); - - WalletView walletView = (WalletView) mViewController.getPanelContent(); - assertThat(walletView.getCardCarouselContainer().getVisibility()).isEqualTo(View.VISIBLE); - assertThat(walletView.getOverflowIcon().getVisibility()).isEqualTo(View.GONE); - - mViewController.onDeviceLockStateChanged(false); - verify(mWalletClient, times(2)).getWalletCards(any(), mRequestCaptor.capture(), - mCallbackCaptor.capture()); - mCallbackCaptor.getValue().onWalletCardsRetrieved(response); - - assertThat(walletView.getCardCarouselContainer().getVisibility()).isEqualTo(View.VISIBLE); - assertThat(walletView.getOverflowIcon().getVisibility()).isEqualTo(View.VISIBLE); - } - - @Test public void onWalletCardsRetrieved_dismissed_doesNotShowCards() { mViewController.queryWalletCards(); verify(mWalletClient).getWalletCards(any(), mRequestCaptor.capture(), |