32 references to TestMemoryPoolFactory
InMemory.FunctionalTests (6)
Http2\Http2TestBase.cs (1)
115private readonly MemoryPool<byte> _memoryPool = TestMemoryPoolFactory.Create();
KestrelMetricsTests.cs (2)
276MemoryPoolFactory = new TestServiceContext.WrappingMemoryPoolFactory(() => TestMemoryPoolFactory.CreatePinnedBlockMemoryPool()), 615MemoryPoolFactory = new TestServiceContext.WrappingMemoryPoolFactory(() => TestMemoryPoolFactory.CreatePinnedBlockMemoryPool())
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
76internal readonly MemoryPool<byte> _memoryPool = TestMemoryPoolFactory.Create();
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
96memoryPool ?? TestMemoryPoolFactory.Create(),
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
77public IMemoryPoolFactory<byte> MemoryPoolFactory { get; set; } = new WrappingMemoryPoolFactory(() => TestMemoryPoolFactory.Create());
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (8)
Http1\Http1ConnectionTestsBase.cs (1)
34_pipelineFactory = TestMemoryPoolFactory.Create();
Http1\Http1OutputProducerTests.cs (1)
25_memoryPool = TestMemoryPoolFactory.Create();
HttpResponseHeadersTests.cs (1)
24using (var memoryPool = TestMemoryPoolFactory.Create())
PipelineExtensionTests.cs (1)
19private readonly MemoryPool<byte> _memoryPool = TestMemoryPoolFactory.Create();
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
96memoryPool ?? TestMemoryPoolFactory.Create(),
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
77public IMemoryPoolFactory<byte> MemoryPoolFactory { get; set; } = new WrappingMemoryPoolFactory(() => TestMemoryPoolFactory.Create());
StartLineTests.cs (1)
518MemoryPool = TestMemoryPoolFactory.Create();
TestHelpers\TestInput.cs (1)
27_memoryPool = TestMemoryPoolFactory.Create();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (15)
ChunkWriterBenchmark.cs (1)
23_memoryPool = TestMemoryPoolFactory.Create();
HeaderCollectionBenchmark.cs (1)
327var memoryPool = TestMemoryPoolFactory.Create();
Http1ConnectionBenchmark.cs (1)
30var memoryPool = TestMemoryPoolFactory.Create();
Http1ConnectionParsingOverheadBenchmark.cs (1)
26var memoryPool = TestMemoryPoolFactory.Create();
Http1LargeWritingBenchmark.cs (1)
31_memoryPool = TestMemoryPoolFactory.Create();
Http1ReadingBenchmark.cs (1)
38_memoryPool = TestMemoryPoolFactory.Create();
Http1WritingBenchmark.cs (1)
38_memoryPool = TestMemoryPoolFactory.Create();
Http2\Http2ConnectionBenchmarkBase.cs (1)
46_memoryPool = TestMemoryPoolFactory.Create();
Http2\Http2FrameWriterBenchmark.cs (1)
27_memoryPool = TestMemoryPoolFactory.Create();
HttpProtocolFeatureCollection.cs (1)
229var memoryPool = TestMemoryPoolFactory.Create();
PipeThroughputBenchmark.cs (1)
22_memoryPool = TestMemoryPoolFactory.Create();
RequestParsingBenchmark.cs (1)
27_memoryPool = TestMemoryPoolFactory.Create();
ResponseHeaderCollectionBenchmark.cs (1)
175var memoryPool = TestMemoryPoolFactory.Create();
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
76internal readonly MemoryPool<byte> _memoryPool = TestMemoryPoolFactory.Create();
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
96memoryPool ?? TestMemoryPoolFactory.Create(),
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
77public IMemoryPoolFactory<byte> MemoryPoolFactory { get; set; } = new WrappingMemoryPoolFactory(() => TestMemoryPoolFactory.Create());
Sockets.FunctionalTests (2)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
77public IMemoryPoolFactory<byte> MemoryPoolFactory { get; set; } = new WrappingMemoryPoolFactory(() => TestMemoryPoolFactory.Create());
src\Servers\Kestrel\test\FunctionalTests\Http2\ShutdownTests.cs (1)
171MemoryPoolFactory = new TestServiceContext.WrappingMemoryPoolFactory(() => TestMemoryPoolFactory.CreatePinnedBlockMemoryPool()),