#include "components/autofill/core/browser/payments/payments_requests/upload_card_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/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 {
struct UploadCardOptions { … };
std::unique_ptr<UploadCardRequest> CreateUploadCardRequest(
UploadCardOptions upload_card_options) { … }
}
TEST(UploadCardRequestTest, UploadIncludesNonLocationData) { … }
TEST(UploadCardRequestTest,
UploadRequestIncludesBillingCustomerNumberInRequest) { … }
TEST(UploadCardRequestTest,
UploadRequestExcludesBillingCustomerNumberIfNoBcnExists) { … }
TEST(UploadCardRequestTest, UploadRequestIncludesClientBehaviorSignals) { … }
TEST(UploadCardRequestTest, UploadRequestIncludesPan) { … }
TEST(UploadCardRequestTest, UploadIncludesCvcInRequestIfProvided) { … }
TEST(UploadCardRequestTest, UploadDoesNotIncludeCvcInRequestIfNotProvided) { … }
TEST(UploadCardRequestTest, UploadIncludesChromeUserContext) { … }
TEST(UploadCardRequestTest, UploadIncludesCardNickname) { … }
TEST(UploadCardRequestTest, UploadDoesNotIncludeCardNicknameEmptyNickname) { … }
TEST(UploadCardRequestTest, DoesNotHaveTimeoutWithoutFlag) { … }
TEST(UploadCardRequestTest, HasTimeoutWhenFlagSet) { … }
}