Lines Matching refs:chrono
133 auto backoff = BackoffSequence<std::chrono::seconds>::Builder() in TEST()
134 .withInitialRetransmissionTime(std::chrono::seconds(0)) in TEST()
145 auto backoff = BackoffSequence<std::chrono::milliseconds>::Builder() in TEST()
146 .withInitialRetransmissionTime(std::chrono::milliseconds(5)) in TEST()
147 .withMaximumRetransmissionDuration(std::chrono::milliseconds(3)) in TEST()
150 EXPECT_EQ(std::chrono::milliseconds(3), backoff.getNextTimeout()); in TEST()
158 auto backoff = BackoffSequence<std::chrono::hours>::Builder() in TEST()
159 .withInitialRetransmissionTime(std::chrono::hours(5)) in TEST()
160 .withMaximumRetransmissionDuration(std::chrono::hours(5)) in TEST()
163 EXPECT_EQ(std::chrono::hours(5), backoff.getNextTimeout()); in TEST()
171 auto backoff = BackoffSequence<std::chrono::nanoseconds>::Builder() in TEST()
172 .withInitialRetransmissionTime(std::chrono::nanoseconds(7)) in TEST()
173 .withMaximumRetransmissionTime(std::chrono::nanoseconds(3)) in TEST()
174 .withMaximumRetransmissionDuration(std::chrono::nanoseconds(5)) in TEST()
177 EXPECT_EQ(std::chrono::nanoseconds(3), backoff.getNextTimeout()); in TEST()
178 EXPECT_EQ(std::chrono::nanoseconds(2), backoff.getNextTimeout()); in TEST()