| Index: webrtc/base/cpu_time_unittest.cc
|
| diff --git a/webrtc/base/cpu_time_unittest.cc b/webrtc/base/cpu_time_unittest.cc
|
| index 6a82cfdcbbc3fcc3cac125cf6332b90f9f1eb6ed..b6f6766dccac463b68d5e8e8c909fb42417ae93e 100644
|
| --- a/webrtc/base/cpu_time_unittest.cc
|
| +++ b/webrtc/base/cpu_time_unittest.cc
|
| @@ -62,12 +62,12 @@ TEST(CpuTimeTest, TwoThreads) {
|
| // Therefore GetThreadCpuTime is not a wall clock.
|
| EXPECT_LE(thread_duration_nanos,
|
| kAllowedErrorMillisecs * kNumNanosecsPerMillisec);
|
| - // Total process time is twice working threads' CPU time.
|
| + // Total process time is at least twice working threads' CPU time.
|
| // Therefore process and thread times are correctly related.
|
| - EXPECT_NEAR(
|
| + EXPECT_GE(
|
| process_duration_nanos,
|
| - kWorkingThreads * kProcessingTimeMillisecs * kNumNanosecsPerMillisec,
|
| - kWorkingThreads * kAllowedErrorMillisecs * kNumNanosecsPerMillisec);
|
| + kWorkingThreads * (kProcessingTimeMillisecs - kAllowedErrorMillisecs)
|
| + * kNumNanosecsPerMillisec);
|
| }
|
|
|
| TEST(CpuTimeTest, Sleeping) {
|
|
|