#include "components/permissions/contexts/payment_handler_permission_context.h"
#include <string>
#include "base/functional/bind.h"
#include "build/build_config.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "chrome/test/base/testing_profile.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/content_settings/core/common/content_settings_types.h"
#include "components/permissions/permission_request_id.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/mock_render_process_host.h"
#include "content/public/test/web_contents_tester.h"
#include "testing/gtest/include/gtest/gtest.h"
#if BUILDFLAG(IS_ANDROID)
#include "components/infobars/content/content_infobar_manager.h"
#else
#include "components/permissions/permission_request_manager.h"
#endif
namespace {
PermissionStatus;
class TestPermissionContext : public payments::PaymentHandlerPermissionContext { … };
}
class PaymentHandlerPermissionContextTests
: public ChromeRenderViewHostTestHarness { … };
TEST_F(PaymentHandlerPermissionContextTests, TestInsecureRequestingUrl) { … }
TEST_F(PaymentHandlerPermissionContextTests, TestInsecureQueryingUrl) { … }