@Test public void testDelete_unregisteredFID_successful() throws Exception { persistedInstallation.insertOrUpdatePersistedInstallationEntry( PersistedInstallationEntry.INSTANCE.withUnregisteredFid(TEST_FID_1)); TestOnCompleteListener<Void> onCompleteListener = new TestOnCompleteListener<>(); firebaseInstallations.delete().addOnCompleteListener(executor, onCompleteListener); onCompleteListener.await(); PersistedInstallationEntry entryValue = persistedInstallation.readPersistedInstallationEntryValue(); assertEquals(entryValue.getRegistrationStatus(), RegistrationStatus.NOT_GENERATED); verify(mockBackend, never()) .deleteFirebaseInstallation(anyString(), anyString(), anyString(), anyString()); }
@NonNull @Override public Task<Void> delete() { return Tasks.call(backgroundExecutor, this::deleteFirebaseInstallationId); }
FirebaseInstallations implements FirebaseInstallationsApi { @NonNull @Override public Task<Void> delete() { return Tasks.call(backgroundExecutor, this::deleteFirebaseInstallationId); } }
FirebaseInstallations implements FirebaseInstallationsApi { @NonNull @Override public Task<Void> delete() { return Tasks.call(backgroundExecutor, this::deleteFirebaseInstallationId); } FirebaseInstallations(
      FirebaseApp firebaseApp,
      @NonNull Provider<UserAgentPublisher> publisher,
      @NonNull Provider<HeartBeatInfo> heartbeatInfo);   FirebaseInstallations(
      ExecutorService backgroundExecutor,
      FirebaseApp firebaseApp,
      FirebaseInstallationServiceClient serviceClient,
      PersistedInstallation persistedInstallation,
      Utils utils,
      IidStore iidStore,
      RandomFidGenerator fidGenerator); }
FirebaseInstallations implements FirebaseInstallationsApi { @NonNull @Override public Task<Void> delete() { return Tasks.call(backgroundExecutor, this::deleteFirebaseInstallationId); } FirebaseInstallations(
      FirebaseApp firebaseApp,
      @NonNull Provider<UserAgentPublisher> publisher,
      @NonNull Provider<HeartBeatInfo> heartbeatInfo);   FirebaseInstallations(
      ExecutorService backgroundExecutor,
      FirebaseApp firebaseApp,
      FirebaseInstallationServiceClient serviceClient,
      PersistedInstallation persistedInstallation,
      Utils utils,
      IidStore iidStore,
      RandomFidGenerator fidGenerator); @NonNull static FirebaseInstallations getInstance(); @NonNull static FirebaseInstallations getInstance(@NonNull FirebaseApp app); @NonNull @Override Task<String> getId(); @NonNull @Override Task<InstallationTokenResult> getToken(boolean forceRefresh); @NonNull @Override Task<Void> delete(); }
FirebaseInstallations implements FirebaseInstallationsApi { @NonNull @Override public Task<Void> delete() { return Tasks.call(backgroundExecutor, this::deleteFirebaseInstallationId); } FirebaseInstallations(
      FirebaseApp firebaseApp,
      @NonNull Provider<UserAgentPublisher> publisher,
      @NonNull Provider<HeartBeatInfo> heartbeatInfo);   FirebaseInstallations(
      ExecutorService backgroundExecutor,
      FirebaseApp firebaseApp,
      FirebaseInstallationServiceClient serviceClient,
      PersistedInstallation persistedInstallation,
      Utils utils,
      IidStore iidStore,
      RandomFidGenerator fidGenerator); @NonNull static FirebaseInstallations getInstance(); @NonNull static FirebaseInstallations getInstance(@NonNull FirebaseApp app); @NonNull @Override Task<String> getId(); @NonNull @Override Task<InstallationTokenResult> getToken(boolean forceRefresh); @NonNull @Override Task<Void> delete();  }