@Test public void parseTokenExpirationTimestamp_successful() { long actual = FirebaseInstallationServiceClient.parseTokenExpirationTimestamp(TEST_EXPIRATION_TIMESTAMP); assertWithMessage("Exception status doesn't match") .that(actual) .isEqualTo(TEST_EXPIRATION_IN_SECS); }
@VisibleForTesting static long parseTokenExpirationTimestamp(String expiresIn) { checkArgument( EXPIRATION_TIMESTAMP_PATTERN.matcher(expiresIn).matches(), PARSING_EXPIRATION_TIME_ERROR_MESSAGE); return (expiresIn == null || expiresIn.length() == 0) ? 0L : Long.parseLong(expiresIn.substring(0, expiresIn.length() - 1)); }
FirebaseInstallationServiceClient { @VisibleForTesting static long parseTokenExpirationTimestamp(String expiresIn) { checkArgument( EXPIRATION_TIMESTAMP_PATTERN.matcher(expiresIn).matches(), PARSING_EXPIRATION_TIME_ERROR_MESSAGE); return (expiresIn == null || expiresIn.length() == 0) ? 0L : Long.parseLong(expiresIn.substring(0, expiresIn.length() - 1)); } }
FirebaseInstallationServiceClient { @VisibleForTesting static long parseTokenExpirationTimestamp(String expiresIn) { checkArgument( EXPIRATION_TIMESTAMP_PATTERN.matcher(expiresIn).matches(), PARSING_EXPIRATION_TIME_ERROR_MESSAGE); return (expiresIn == null || expiresIn.length() == 0) ? 0L : Long.parseLong(expiresIn.substring(0, expiresIn.length() - 1)); } FirebaseInstallationServiceClient(
      @NonNull Context context,
      @NonNull Provider<UserAgentPublisher> publisher,
      @NonNull Provider<HeartBeatInfo> heartbeatInfo); }
FirebaseInstallationServiceClient { @VisibleForTesting static long parseTokenExpirationTimestamp(String expiresIn) { checkArgument( EXPIRATION_TIMESTAMP_PATTERN.matcher(expiresIn).matches(), PARSING_EXPIRATION_TIME_ERROR_MESSAGE); return (expiresIn == null || expiresIn.length() == 0) ? 0L : Long.parseLong(expiresIn.substring(0, expiresIn.length() - 1)); } FirebaseInstallationServiceClient(
      @NonNull Context context,
      @NonNull Provider<UserAgentPublisher> publisher,
      @NonNull Provider<HeartBeatInfo> heartbeatInfo); @NonNull InstallationResponse createFirebaseInstallation(
      @NonNull String apiKey,
      @Nullable String fid,
      @NonNull String projectID,
      @NonNull String appId,
      @Nullable String iidToken); @NonNull void deleteFirebaseInstallation(
      @NonNull String apiKey,
      @NonNull String fid,
      @NonNull String projectID,
      @NonNull String refreshToken); @NonNull TokenResult generateAuthToken(
      @NonNull String apiKey,
      @NonNull String fid,
      @NonNull String projectID,
      @NonNull String refreshToken); }
FirebaseInstallationServiceClient { @VisibleForTesting static long parseTokenExpirationTimestamp(String expiresIn) { checkArgument( EXPIRATION_TIMESTAMP_PATTERN.matcher(expiresIn).matches(), PARSING_EXPIRATION_TIME_ERROR_MESSAGE); return (expiresIn == null || expiresIn.length() == 0) ? 0L : Long.parseLong(expiresIn.substring(0, expiresIn.length() - 1)); } FirebaseInstallationServiceClient(
      @NonNull Context context,
      @NonNull Provider<UserAgentPublisher> publisher,
      @NonNull Provider<HeartBeatInfo> heartbeatInfo); @NonNull InstallationResponse createFirebaseInstallation(
      @NonNull String apiKey,
      @Nullable String fid,
      @NonNull String projectID,
      @NonNull String appId,
      @Nullable String iidToken); @NonNull void deleteFirebaseInstallation(
      @NonNull String apiKey,
      @NonNull String fid,
      @NonNull String projectID,
      @NonNull String refreshToken); @NonNull TokenResult generateAuthToken(
      @NonNull String apiKey,
      @NonNull String fid,
      @NonNull String projectID,
      @NonNull String refreshToken);  }