Lines Matching refs:kEpsilonMicros
6 // system). Sorry. |kEpsilonMicros| may be increased to increase tolerance and
25 const int64_t kEpsilonMicros = 15 * kMicrosPerMs; // 15 ms.
98 WaitingThread thread(static_cast<MojoDeadline>(10 * kEpsilonMicros));
103 EXPECT_LT(elapsed_micros, kEpsilonMicros);
108 WaitingThread thread(static_cast<MojoDeadline>(10 * kEpsilonMicros));
113 EXPECT_LT(elapsed_micros, kEpsilonMicros);
118 WaitingThread thread(static_cast<MojoDeadline>(10 * kEpsilonMicros));
121 base::TimeDelta::FromMicroseconds(2 * kEpsilonMicros));
125 EXPECT_GT(elapsed_micros, (2-1) * kEpsilonMicros);
126 EXPECT_LT(elapsed_micros, (2+1) * kEpsilonMicros);
131 WaitingThread thread(static_cast<MojoDeadline>(10 * kEpsilonMicros));
134 base::TimeDelta::FromMicroseconds(5 * kEpsilonMicros));
138 EXPECT_GT(elapsed_micros, (5-1) * kEpsilonMicros);
139 EXPECT_LT(elapsed_micros, (5+1) * kEpsilonMicros);
144 WaitingThread thread(static_cast<MojoDeadline>(2 * kEpsilonMicros));
148 EXPECT_GT(elapsed_micros, (2-1) * kEpsilonMicros);
149 EXPECT_LT(elapsed_micros, (2+1) * kEpsilonMicros);
161 EXPECT_LT(elapsed_micros, kEpsilonMicros);
171 EXPECT_LT(elapsed_micros, kEpsilonMicros);
179 base::TimeDelta::FromMicroseconds(2 * kEpsilonMicros));
183 EXPECT_GT(elapsed_micros, (2-1) * kEpsilonMicros);
184 EXPECT_LT(elapsed_micros, (2+1) * kEpsilonMicros);
192 base::TimeDelta::FromMicroseconds(5 * kEpsilonMicros));
196 EXPECT_GT(elapsed_micros, (5-1) * kEpsilonMicros);
197 EXPECT_LT(elapsed_micros, (5+1) * kEpsilonMicros);
211 EXPECT_LT(elapsed_micros, kEpsilonMicros);
216 waiter.Wait(static_cast<MojoDeadline>(2 * kEpsilonMicros)));
218 EXPECT_GT(elapsed_micros, (2-1) * kEpsilonMicros);
219 EXPECT_LT(elapsed_micros, (2+1) * kEpsilonMicros);
224 waiter.Wait(static_cast<MojoDeadline>(5 * kEpsilonMicros)));
226 EXPECT_GT(elapsed_micros, (5-1) * kEpsilonMicros);
227 EXPECT_LT(elapsed_micros, (5+1) * kEpsilonMicros);
242 EXPECT_LT(elapsed_micros, kEpsilonMicros);
252 EXPECT_LT(elapsed_micros, kEpsilonMicros);
260 base::TimeDelta::FromMicroseconds(2 * kEpsilonMicros));
264 EXPECT_LT(elapsed_micros, kEpsilonMicros);
268 WaitingThread thread(static_cast<MojoDeadline>(10 * kEpsilonMicros));
271 base::TimeDelta::FromMicroseconds(1 * kEpsilonMicros));
274 base::TimeDelta::FromMicroseconds(2 * kEpsilonMicros));
278 EXPECT_GT(elapsed_micros, (1-1) * kEpsilonMicros);
279 EXPECT_LT(elapsed_micros, (1+1) * kEpsilonMicros);