#include "components/autofill/core/browser/payments/test_credit_card_save_manager.h"
#include <optional>
#include "components/autofill/core/browser/payments/test_payments_network_interface.h"
namespace autofill {
TestCreditCardSaveManager::TestCreditCardSaveManager(AutofillClient* client)
: … { … }
TestCreditCardSaveManager::~TestCreditCardSaveManager() = default;
bool TestCreditCardSaveManager::IsCreditCardUploadEnabled() { … }
void TestCreditCardSaveManager::SetCreditCardUploadEnabled(
bool credit_card_upload_enabled) { … }
bool TestCreditCardSaveManager::CreditCardWasUploaded() { … }
bool TestCreditCardSaveManager::CvcLocalSaveStarted() { … }
bool TestCreditCardSaveManager::AttemptToOfferCvcLocalSave(
const CreditCard& card) { … }
bool TestCreditCardSaveManager::CvcUploadSaveStarted() { … }
void TestCreditCardSaveManager::AttemptToOfferCvcUploadSave(
const CreditCard& card) { … }
bool TestCreditCardSaveManager::CardLocalSaveStarted() { … }
bool TestCreditCardSaveManager::AttemptToOfferCardLocalSave(
const CreditCard& card) { … }
void TestCreditCardSaveManager::set_show_save_prompt(bool show_save_prompt) { … }
void TestCreditCardSaveManager::set_upload_request_card_number(
const std::u16string& credit_card_number) { … }
void TestCreditCardSaveManager::set_upload_request_card(
const CreditCard& card) { … }
payments::PaymentsNetworkInterface::UploadCardRequestDetails*
TestCreditCardSaveManager::upload_request() { … }
void TestCreditCardSaveManager::InitVirtualCardEnroll(
const CreditCard& credit_card,
std::optional<payments::PaymentsNetworkInterface::
GetDetailsForEnrollmentResponseDetails>
get_details_for_enrollment_response_details) { … }
void TestCreditCardSaveManager::OnDidUploadCard(
payments::PaymentsAutofillClient::PaymentsRpcResult result,
const payments::PaymentsNetworkInterface::UploadCardResponseDetails&
upload_card_response_details) { … }
}