#include "services/network/sec_header_helpers.h"
#include "base/test/task_environment.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_builder.h"
#include "net/url_request/url_request_test_util.h"
#include "services/network/public/cpp/cors/origin_access_list.h"
#include "services/network/public/mojom/cors_origin_pattern.mojom.h"
#include "services/network/public/mojom/fetch_api.mojom.h"
#include "services/network/public/mojom/network_context.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
#include "url/gurl.h"
namespace {
constexpr char kSecureSite[] = …;
constexpr char kInsecureSite[] = …;
constexpr char kPrivilegedInitiator[] = …;
constexpr char kKnownSecChHeader[] = …;
constexpr char kKnownSecFetchSiteHeader[] = …;
constexpr char kKnownSecFetchModeHeader[] = …;
constexpr char kKnownSecFetchUserHeader[] = …;
constexpr char kKnownSecFetchDestHeader[] = …;
constexpr char kOtherSecHeader[] = …;
constexpr char kOtherHeader[] = …;
constexpr char kHeaderValue[] = …;
}
namespace network {
class SecHeaderHelpersTest : public PlatformTest { … };
TEST_F(SecHeaderHelpersTest, SecHeadersRemovedOnDowngrade) { … }
TEST_F(SecHeaderHelpersTest, SecHeadersRemainOnSecureRedirect) { … }
TEST_F(SecHeaderHelpersTest, SecHeadersRemoveFirstLast) { … }
TEST_F(SecHeaderHelpersTest, UnprivilegedRequestOnExtension) { … }
TEST_F(SecHeaderHelpersTest, PrivilegedRequestOnExtension) { … }
}