3 writes to FakeTimeProvider
InMemory.FunctionalTests (3)
Http2\Http2TestBase.cs (1)
400
FakeTimeProvider
= _timeProvider,
src\Servers\Kestrel\shared\test\TestServiceContext.cs (2)
46
FakeTimeProvider
= null;
55
FakeTimeProvider
= new FakeTimeProvider();
30 references to FakeTimeProvider
InMemory.FunctionalTests (30)
Http2\Http2TestBase.cs (3)
1381
_serviceContext.
FakeTimeProvider
.Advance(timeSpan);
1387
var timestamp = _serviceContext.
FakeTimeProvider
.GetTimestamp();
1394
var timeProvider = _serviceContext.
FakeTimeProvider
;
Http2\Http2TimeoutTests.cs (1)
248
var timeProvider = _serviceContext.
FakeTimeProvider
;
Http3\Http3TestBase.cs (1)
126
Http3Api = new Http3InMemory(_serviceContext, _serviceContext.
FakeTimeProvider
, _mockTimeoutHandler.Object, LoggerFactory);
Http3\Http3TimeoutTests.cs (7)
129
var timeProvider = _serviceContext.
FakeTimeProvider
;
164
var timestamp = _serviceContext.
FakeTimeProvider
.GetTimestamp();
217
var timeProvider = _serviceContext.
FakeTimeProvider
;
244
var timeProvider = _serviceContext.
FakeTimeProvider
;
307
var timeProvider = _serviceContext.
FakeTimeProvider
;
447
var fakeTimeProvider = _serviceContext.
FakeTimeProvider
;
489
var fakeTimeProvider = _serviceContext.
FakeTimeProvider
;
KeepAliveTimeoutTests.cs (6)
46
testContext.
FakeTimeProvider
.Advance(_keepAliveTimeout + Heartbeat.Interval + TimeSpan.FromTicks(1));
80
testContext.
FakeTimeProvider
.Advance(_keepAliveTimeout + Heartbeat.Interval);
119
testContext.
FakeTimeProvider
.Advance(_shortDelay);
159
testContext.
FakeTimeProvider
.Advance(_shortDelay);
194
testContext.
FakeTimeProvider
.Advance(_keepAliveTimeout + Heartbeat.Interval + TimeSpan.FromTicks(1));
234
testContext.
FakeTimeProvider
.Advance(_shortDelay);
RequestBodyTimeoutTests.cs (2)
77
serviceContext.
FakeTimeProvider
.Advance(TimeSpan.FromSeconds(1));
203
serviceContext.
FakeTimeProvider
.Advance(TimeSpan.FromSeconds(1));
RequestHeadersTimeoutTests.cs (4)
42
testContext.
FakeTimeProvider
.Advance(RequestHeadersTimeout + Heartbeat.Interval + TimeSpan.FromTicks(1));
74
testContext.
FakeTimeProvider
.Advance(RequestHeadersTimeout + Heartbeat.Interval + TimeSpan.FromTicks(1));
107
testContext.
FakeTimeProvider
.Advance(RequestHeadersTimeout + Heartbeat.Interval + TimeSpan.FromTicks(1));
138
testContext.
FakeTimeProvider
.Advance(ShortDelay);
RequestTests.cs (1)
1666
serviceContext.
FakeTimeProvider
.Advance(TimeSpan.FromSeconds(5));
ResponseDrainingTests.cs (3)
61
testContext.
FakeTimeProvider
.Advance(TimeSpan.FromSeconds(1));
65
testContext.
FakeTimeProvider
.Advance(Heartbeat.Interval - TimeSpan.FromSeconds(.5));
70
testContext.
FakeTimeProvider
.Advance(TimeSpan.FromSeconds(1));
src\Servers\Kestrel\shared\test\TestServiceContext.cs (2)
56
TimeProvider =
FakeTimeProvider
;
57
DateHeaderValueManager = new DateHeaderValueManager(
FakeTimeProvider
);