@Test public void logDismiss_proxiesRequestToEngagementMetricsClient() { metricsLoggerClient.logDismiss( BANNER_MESSAGE_MODEL, InAppMessagingDismissType.UNKNOWN_DISMISS_TYPE); verify(engagementMetricsLoggerInterface).logEvent(anyObject()); }
void logDismiss(InAppMessage message, InAppMessagingDismissType dismissType) { if (!isTestCampaign(message)) { firebaseInstallations .getId() .addOnSuccessListener( id -> engagementMetricsLogger.logEvent( createDismissEntry(message, id, dismissTransform.get(dismissType)) .toByteArray())); logEventAsync(message, AnalyticsConstants.ANALYTICS_DISMISS_EVENT, false); } developerListenerManager.messageDismissed(message); }
MetricsLoggerClient { void logDismiss(InAppMessage message, InAppMessagingDismissType dismissType) { if (!isTestCampaign(message)) { firebaseInstallations .getId() .addOnSuccessListener( id -> engagementMetricsLogger.logEvent( createDismissEntry(message, id, dismissTransform.get(dismissType)) .toByteArray())); logEventAsync(message, AnalyticsConstants.ANALYTICS_DISMISS_EVENT, false); } developerListenerManager.messageDismissed(message); } }
MetricsLoggerClient { void logDismiss(InAppMessage message, InAppMessagingDismissType dismissType) { if (!isTestCampaign(message)) { firebaseInstallations .getId() .addOnSuccessListener( id -> engagementMetricsLogger.logEvent( createDismissEntry(message, id, dismissTransform.get(dismissType)) .toByteArray())); logEventAsync(message, AnalyticsConstants.ANALYTICS_DISMISS_EVENT, false); } developerListenerManager.messageDismissed(message); } MetricsLoggerClient(
      EngagementMetricsLoggerInterface engagementMetricsLogger,
      AnalyticsConnector analyticsConnector,
      FirebaseApp firebaseApp,
      FirebaseInstallationsApi firebaseInstallations,
      Clock clock,
      DeveloperListenerManager developerListenerManager); }
MetricsLoggerClient { void logDismiss(InAppMessage message, InAppMessagingDismissType dismissType) { if (!isTestCampaign(message)) { firebaseInstallations .getId() .addOnSuccessListener( id -> engagementMetricsLogger.logEvent( createDismissEntry(message, id, dismissTransform.get(dismissType)) .toByteArray())); logEventAsync(message, AnalyticsConstants.ANALYTICS_DISMISS_EVENT, false); } developerListenerManager.messageDismissed(message); } MetricsLoggerClient(
      EngagementMetricsLoggerInterface engagementMetricsLogger,
      AnalyticsConnector analyticsConnector,
      FirebaseApp firebaseApp,
      FirebaseInstallationsApi firebaseInstallations,
      Clock clock,
      DeveloperListenerManager developerListenerManager);  }
MetricsLoggerClient { void logDismiss(InAppMessage message, InAppMessagingDismissType dismissType) { if (!isTestCampaign(message)) { firebaseInstallations .getId() .addOnSuccessListener( id -> engagementMetricsLogger.logEvent( createDismissEntry(message, id, dismissTransform.get(dismissType)) .toByteArray())); logEventAsync(message, AnalyticsConstants.ANALYTICS_DISMISS_EVENT, false); } developerListenerManager.messageDismissed(message); } MetricsLoggerClient(
      EngagementMetricsLoggerInterface engagementMetricsLogger,
      AnalyticsConnector analyticsConnector,
      FirebaseApp firebaseApp,
      FirebaseInstallationsApi firebaseInstallations,
      Clock clock,
      DeveloperListenerManager developerListenerManager);   }