#include "components/payments/content/payment_app.h"
#include <memory>
#include <utility>
#include <vector>
#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "components/payments/content/service_worker_payment_app.h"
#include "content/public/browser/stored_payment_app.h"
#include "content/public/browser/supported_delegations.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_browser_context.h"
#include "content/public/test/test_web_contents_factory.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/payments/payment_request.mojom.h"
namespace payments {
namespace {
enum class RequiredPaymentOptions { … };
static const RequiredPaymentOptions kRequiredPaymentOptionsValues[]{ … };
}
class PaymentAppTest : public testing::TestWithParam<RequiredPaymentOptions>,
public PaymentRequestSpec::Observer { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(PaymentAppTest, SortApps) { … }
TEST_P(PaymentAppTest, SortAppsBasedOnSupportedDelegations) { … }
}