1 write to _timeProvider
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
TimeoutControlTests.cs (1)
20
_timeProvider
= new FakeTimeProvider();
72 references to _timeProvider
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (72)
TimeoutControlTests.cs (72)
21
_timeoutControl = new TimeoutControl(_mockTimeoutHandler.Object,
_timeProvider
);
31
var now =
_timeProvider
.GetTimestamp();
34
_timeoutControl.Tick(
_timeProvider
.GetTimestamp(now + 2, Heartbeat.Interval));
66
var now =
_timeProvider
.GetTimestamp();
73
now +=
_timeProvider
.TimestampFrequency;
81
now +=
_timeProvider
.TimestampFrequency;
83
now +=
_timeProvider
.TimestampFrequency;
98
var now =
_timeProvider
.GetTimestamp();
105
now +=
_timeProvider
.TimestampFrequency;
107
now +=
_timeProvider
.TimestampFrequency;
112
now +=
_timeProvider
.TimestampFrequency;
120
now +=
_timeProvider
.TimestampFrequency;
128
now +=
_timeProvider
.TimestampFrequency;
136
now +=
_timeProvider
.TimestampFrequency;
144
now +=
_timeProvider
.TimestampFrequency;
164
_timeProvider
.Advance(TimeSpan.FromSeconds(1));
165
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());
166
_timeProvider
.Advance(TimeSpan.FromSeconds(1));
167
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());
168
_timeProvider
.Advance(TimeSpan.FromSeconds(1));
170
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());
173
_timeProvider
.Advance(TimeSpan.FromSeconds(0.5));
177
_timeProvider
.Advance(TimeSpan.FromSeconds(0.5));
178
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());
181
_timeProvider
.Advance(TimeSpan.FromSeconds(2));
182
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());
188
_timeProvider
.Advance(TimeSpan.FromSeconds(0.5));
192
_timeProvider
.Advance(TimeSpan.FromSeconds(1.0));
193
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());
194
_timeProvider
.Advance(TimeSpan.FromSeconds(.5));
195
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());
201
_timeProvider
.Advance(TimeSpan.FromSeconds(1));
202
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());
220
_timeProvider
.Advance(TimeSpan.FromSeconds(1));
221
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());
222
_timeProvider
.Advance(TimeSpan.FromSeconds(1));
223
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());
230
_timeProvider
.Advance(TimeSpan.FromSeconds(0.25));
234
_timeProvider
.Advance(TimeSpan.FromSeconds(0.25));
238
_timeProvider
.Advance(TimeSpan.FromSeconds(0.5));
240
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());
246
_timeProvider
.Advance(TimeSpan.FromSeconds(1));
247
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());
268
_timeProvider
.Advance(TimeSpan.FromSeconds(3));
270
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());
276
_timeProvider
.Advance(TimeSpan.FromSeconds(2) + Heartbeat.Interval + TimeSpan.FromTicks(1));
277
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());
291
var now =
_timeProvider
.GetTimestamp();
299
now +=
_timeProvider
.TimestampFrequency;
302
now +=
_timeProvider
.TimestampFrequency;
310
now +=
_timeProvider
.TimestampFrequency;
324
now +=
_timeProvider
.TimestampFrequency;
337
var now =
_timeProvider
.GetTimestamp();
344
now +=
_timeProvider
.TimestampFrequency;
347
now +=
_timeProvider
.TimestampFrequency;
352
now +=
_timeProvider
.TimestampFrequency * 2;
360
now +=
_timeProvider
.TimestampFrequency;
363
now +=
_timeProvider
.TimestampFrequency;
470
_timeProvider
.Advance(TimeSpan.FromTicks(1));
471
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());
489
_timeProvider
.Advance(TimeSpan.FromSeconds(4) + Heartbeat.Interval + TimeSpan.FromTicks(1));
490
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());
515
_timeProvider
.Advance(TimeSpan.FromSeconds(1));
517
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());
522
var endTime =
_timeProvider
.GetTimestamp(timeSpan);
524
while (
_timeProvider
.GetTimestamp(Heartbeat.Interval) < endTime)
526
_timeProvider
.Advance(Heartbeat.Interval);
527
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());
530
_timeProvider
.Advance(
_timeProvider
.GetElapsedTime(
_timeProvider
.GetTimestamp(), endTime));
531
_timeoutControl.Tick(
_timeProvider
.GetTimestamp());