| Index: webrtc/modules/utility/source/process_thread_impl_unittest.cc
|
| diff --git a/webrtc/modules/utility/source/process_thread_impl_unittest.cc b/webrtc/modules/utility/source/process_thread_impl_unittest.cc
|
| index 92cd561e4548869c495d39b427e2f3e9b24905c8..34ed5c5a3845ddbd5adc2939f2136e512d0105a2 100644
|
| --- a/webrtc/modules/utility/source/process_thread_impl_unittest.cc
|
| +++ b/webrtc/modules/utility/source/process_thread_impl_unittest.cc
|
| @@ -251,9 +251,8 @@
|
| rtc::scoped_ptr<EventWrapper> called(EventWrapper::Create());
|
|
|
| MockModule module;
|
| - int64_t start_time;
|
| - int64_t called_time;
|
| -
|
| + int64_t start_time = 0;
|
| + int64_t called_time = 0;
|
| // Ask for a callback after 1000ms.
|
| // TimeUntilNextProcess will be called twice.
|
| // The first time we use it to get the thread into a waiting state.
|
| @@ -282,6 +281,8 @@
|
| EXPECT_CALL(module, ProcessThreadAttached(nullptr)).Times(1);
|
| thread.Stop();
|
|
|
| + ASSERT_GT(start_time, 0);
|
| + ASSERT_GT(called_time, 0);
|
| EXPECT_GE(called_time, start_time);
|
| uint32_t diff = called_time - start_time;
|
| // We should have been called back much quicker than 1sec.
|
|
|