@Test public void fetch_noChangeSinceLastFetch_doesNotUpdateCache() throws Exception { setBackendResponseToNoChange(new Date(mockClock.currentTimeMillis())); assertWithMessage("Fetch() failed after no changes were returned from backend!") .that(fetchHandler.fetch().isSuccessful()) .isTrue(); verify(mockFetchedCache, never()).put(any()); }
public Task<FetchResponse> fetch() { return fetch(frcMetadata.getMinimumFetchIntervalInSeconds()); }
ConfigFetchHandler { public Task<FetchResponse> fetch() { return fetch(frcMetadata.getMinimumFetchIntervalInSeconds()); } }
ConfigFetchHandler { public Task<FetchResponse> fetch() { return fetch(frcMetadata.getMinimumFetchIntervalInSeconds()); } ConfigFetchHandler(
      FirebaseInstallationsApi firebaseInstallations,
      @Nullable AnalyticsConnector analyticsConnector,
      Executor executor,
      Clock clock,
      Random randomGenerator,
      ConfigCacheClient fetchedConfigsCache,
      ConfigFetchHttpClient frcBackendApiClient,
      ConfigMetadataClient frcMetadata,
      Map<String, String> customHttpHeaders); }
ConfigFetchHandler { public Task<FetchResponse> fetch() { return fetch(frcMetadata.getMinimumFetchIntervalInSeconds()); } ConfigFetchHandler(
      FirebaseInstallationsApi firebaseInstallations,
      @Nullable AnalyticsConnector analyticsConnector,
      Executor executor,
      Clock clock,
      Random randomGenerator,
      ConfigCacheClient fetchedConfigsCache,
      ConfigFetchHttpClient frcBackendApiClient,
      ConfigMetadataClient frcMetadata,
      Map<String, String> customHttpHeaders); Task<FetchResponse> fetch(); Task<FetchResponse> fetch(long minimumFetchIntervalInSeconds); @VisibleForTesting @Nullable AnalyticsConnector getAnalyticsConnector(); }
ConfigFetchHandler { public Task<FetchResponse> fetch() { return fetch(frcMetadata.getMinimumFetchIntervalInSeconds()); } ConfigFetchHandler(
      FirebaseInstallationsApi firebaseInstallations,
      @Nullable AnalyticsConnector analyticsConnector,
      Executor executor,
      Clock clock,
      Random randomGenerator,
      ConfigCacheClient fetchedConfigsCache,
      ConfigFetchHttpClient frcBackendApiClient,
      ConfigMetadataClient frcMetadata,
      Map<String, String> customHttpHeaders); Task<FetchResponse> fetch(); Task<FetchResponse> fetch(long minimumFetchIntervalInSeconds); @VisibleForTesting @Nullable AnalyticsConnector getAnalyticsConnector(); static final long DEFAULT_MINIMUM_FETCH_INTERVAL_IN_SECONDS; }