chromium/components/autofill/core/browser/payments/test_authentication_requester.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/autofill/core/browser/payments/test_authentication_requester.h"

#include <string>

#include "build/build_config.h"
#include "components/autofill/core/browser/data_model/credit_card.h"

namespace autofill {

TestAuthenticationRequester::TestAuthenticationRequester() = default;

TestAuthenticationRequester::~TestAuthenticationRequester() = default;

base::WeakPtr<TestAuthenticationRequester>
TestAuthenticationRequester::GetWeakPtr() {}

void TestAuthenticationRequester::OnCvcAuthenticationComplete(
    const CreditCardCvcAuthenticator::CvcAuthenticationResponse& response) {}

#if BUILDFLAG(IS_ANDROID)
bool TestAuthenticationRequester::ShouldOfferFidoAuth() const {
  return false;
}

bool TestAuthenticationRequester::UserOptedInToFidoFromSettingsPageOnMobile()
    const {
  return false;
}
#endif

#if !BUILDFLAG(IS_IOS)
void TestAuthenticationRequester::OnFIDOAuthenticationComplete(
    const CreditCardFidoAuthenticator::FidoAuthenticationResponse& response) {}

void TestAuthenticationRequester::OnFidoAuthorizationComplete(
    bool did_succeed) {}

void TestAuthenticationRequester::IsUserVerifiableCallback(
    bool is_user_verifiable) {}
#endif

void TestAuthenticationRequester::OnOtpAuthenticationComplete(
    const CreditCardOtpAuthenticator::OtpAuthenticationResponse& response) {}

void TestAuthenticationRequester::OnRiskBasedAuthenticationResponseReceived(
    const CreditCardRiskBasedAuthenticator::RiskBasedAuthenticationResponse&
        response) {}

void TestAuthenticationRequester::
    OnVirtualCardRiskBasedAuthenticationResponseReceived(
        payments::PaymentsAutofillClient::PaymentsRpcResult result,
        const payments::PaymentsNetworkInterface::UnmaskResponseDetails&
            response_details) {}

}  // namespace autofill