Merge "Log ACTION_CONTEXTUAL_CARD_SHOW in different place" into qt-dev
am: 42aac32823
Change-Id: I82dc550b23c6fc11fff350c7c72f0154985a62f6
This commit is contained in:
@@ -91,25 +91,23 @@ public class ContextualCardLoaderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getDisplayableCards_refreshCardUri_shouldLogContextualCardDisplay() {
|
||||
public void getDisplayableCards_refreshCardUri_shouldLogContextualCard() {
|
||||
mContextualCardLoader.mNotifyUri = CardContentProvider.REFRESH_CARD_URI;
|
||||
|
||||
mContextualCardLoader.getDisplayableCards(new ArrayList<>());
|
||||
|
||||
verify(mFakeFeatureFactory.metricsFeatureProvider).action(any(),
|
||||
eq(SettingsEnums.ACTION_CONTEXTUAL_CARD_SHOW), any(String.class));
|
||||
verify(mFakeFeatureFactory.metricsFeatureProvider).action(any(),
|
||||
eq(SettingsEnums.ACTION_CONTEXTUAL_CARD_NOT_SHOW), any(String.class));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getDisplayableCards_deleteCardUri_shouldNotLogContextualCardDisplay() {
|
||||
public void getDisplayableCards_deleteCardUri_shouldNotLogContextualCard() {
|
||||
mContextualCardLoader.mNotifyUri = CardContentProvider.DELETE_CARD_URI;
|
||||
|
||||
mContextualCardLoader.getDisplayableCards(new ArrayList<>());
|
||||
|
||||
verify(mFakeFeatureFactory.metricsFeatureProvider, never()).action(any(),
|
||||
eq(SettingsEnums.ACTION_CONTEXTUAL_CARD_SHOW), any(String.class));
|
||||
eq(SettingsEnums.ACTION_CONTEXTUAL_CARD_NOT_SHOW), any(String.class));
|
||||
}
|
||||
|
||||
private List<ContextualCard> getContextualCardList() {
|
||||
|
||||
Reference in New Issue
Block a user