#include "third_party/blink/renderer/platform/loader/fetch/resource_request.h"
#include <memory>
#include "base/test/scoped_feature_list.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/permissions_policy/permissions_policy.h"
#include "third_party/blink/public/mojom/permissions_policy/permissions_policy_feature.mojom-blink.h"
#include "third_party/blink/public/platform/web_url_request.h"
#include "third_party/blink/renderer/platform/network/encoded_form_data.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/weborigin/referrer.h"
#include "third_party/blink/renderer/platform/wtf/text/atomic_string.h"
#include "url/origin.h"
namespace blink {
namespace {
std::unique_ptr<PermissionsPolicy> CreateFromParentPolicy(
const PermissionsPolicy* parent,
ParsedPermissionsPolicy header_policy,
const url::Origin& origin) { … }
}
TEST(ResourceRequestTest, SetHasUserGesture) { … }
TEST(ResourceRequestTest, SetIsAdResource) { … }
TEST(ResourceRequestTest, UpgradeIfInsecureAcrossRedirects) { … }
TEST(ResourceRequestTest, IsFeatureEnabledForSubresourceRequestAssumingOptIn) { … }
}