#include "third_party/blink/renderer/platform/loader/allowed_by_nosniff.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom-blink.h"
#include "third_party/blink/public/mojom/use_counter/metrics/webdx_feature.mojom-blink.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
#include "third_party/blink/renderer/platform/loader/fetch/console_logger.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_fetcher.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_response.h"
#include "third_party/blink/renderer/platform/loader/testing/test_loader_factory.h"
#include "third_party/blink/renderer/platform/loader/testing/test_resource_fetcher_properties.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"
namespace blink {
namespace {
MimeTypeCheck;
WebFeature;
WebDXFeature;
_;
class MockUseCounter : public GarbageCollected<MockUseCounter>,
public UseCounter { … };
class MockConsoleLogger : public GarbageCollected<MockConsoleLogger>,
public ConsoleLogger { … };
}
class AllowedByNosniffTest : public testing::TestWithParam<bool> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(AllowedByNosniffTest, AllowedOrNot) { … }
TEST_P(AllowedByNosniffTest, Counters) { … }
TEST_P(AllowedByNosniffTest, AllTheSchemes) { … }
}