#include "components/payments/content/payment_response_helper.h"
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "base/feature_list.h"
#include "base/memory/weak_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/single_thread_task_executor.h"
#include "components/autofill/core/browser/address_data_manager.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/data_model/autofill_profile.h"
#include "components/autofill/core/browser/test_personal_data_manager.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/payments/content/payment_request_spec.h"
#include "components/payments/content/test_payment_app.h"
#include "components/payments/core/test_payment_request_delegate.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/payments/payment_request.mojom.h"
namespace payments {
class PaymentResponseHelperTest : public testing::Test,
public PaymentResponseHelper::Delegate { … };
TEST_F(PaymentResponseHelperTest, GeneratePaymentResponse_SupportedMethod) { … }
TEST_F(PaymentResponseHelperTest, GeneratePaymentResponse_ShippingAddress) { … }
TEST_F(PaymentResponseHelperTest, GeneratePaymentResponse_ContactDetails_All) { … }
TEST_F(PaymentResponseHelperTest, GeneratePaymentResponse_ContactDetails_Some) { … }
TEST_F(PaymentResponseHelperTest,
GeneratePaymentResponse_ContactPhoneIsFormattedWhenValid) { … }
TEST_F(PaymentResponseHelperTest,
GeneratePaymentResponse_ContactPhoneIsMinimallyFormattedWhenInvalid) { … }
}