#include "components/autofill/core/browser/payments/payments_requests/get_card_upload_details_request.h"
#include "base/feature_list.h"
#include "base/functional/callback_helpers.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/payments/credit_card_save_manager.h"
#include "components/autofill/core/browser/payments/payments_network_interface.h"
#include "components/autofill/core/browser/payments/test/autofill_payments_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
HasSubstr;
namespace autofill::payments {
namespace {
int kAllDetectableValues = …;
struct GetCardUploadDetailsOptions { … };
std::unique_ptr<GetCardUploadDetailsRequest> CreateGetCardUploadDetailsRequest(
GetCardUploadDetailsOptions get_card_upload_details_options) { … }
}
TEST(GetCardUploadDetailsRequestTest, GetDetailsRemovesNonLocationData) { … }
TEST(GetCardUploadDetailsRequestTest,
GetDetailsIncludesDetectedValuesInRequest) { … }
TEST(GetCardUploadDetailsRequestTest,
GetDetailsIncludesClientBehaviorSignalsInChromeUserContext) { … }
TEST(GetCardUploadDetailsRequestTest, GetDetailsIncludesChromeUserContext) { … }
TEST(GetCardUploadDetailsRequestTest,
GetDetailsIncludesUpstreamCheckoutFlowUploadCardSourceInRequest) { … }
TEST(GetCardUploadDetailsRequestTest,
GetDetailsIncludesUpstreamSettingsPageUploadCardSourceInRequest) { … }
TEST(GetCardUploadDetailsRequestTest,
GetDetailsIncludesUpstreamCardOcrUploadCardSourceInRequest) { … }
TEST(
GetCardUploadDetailsRequestTest,
GetDetailsIncludesLocalCardMigrationCheckoutFlowUploadCardSourceInRequest) { … }
TEST(
GetCardUploadDetailsRequestTest,
GetDetailsIncludesLocalCardMigrationSettingsPageUploadCardSourceInRequest) { … }
TEST(GetCardUploadDetailsRequestTest,
GetDetailsIncludesUnknownUploadCardSourceInRequest) { … }
TEST(GetCardUploadDetailsRequestTest, GetDetailsIncludeBillableServiceNumber) { … }
TEST(GetCardUploadDetailsRequestTest, GetDetailsIncludeBillingCustomerNumber) { … }
TEST(GetCardUploadDetailsRequestTest,
GetDetailsExcludesBillingCustomerNumberIfNoBcnExists) { … }
}