#include "components/payments/core/payment_details_validation.h"
#include <ostream>
#include <utility>
#include "base/json/json_reader.h"
#include "base/values.h"
#include "components/payments/core/payment_details.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace payments {
namespace {
const bool REQUIRE_TOTAL = …;
const bool DO_NOT_REQUIRE_TOTAL = …;
const bool EXPECT_VALID = …;
const bool EXPECT_INVALID = …;
struct PaymentDetailsValidationTestCase { … };
std::ostream& operator<<(std::ostream& out,
const PaymentDetailsValidationTestCase& test_case) { … }
class PaymentDetailsValidationTest
: public ::testing::TestWithParam<PaymentDetailsValidationTestCase> { … };
TEST_P(PaymentDetailsValidationTest, Test) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}