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 8f25b112a9fab5b57f2d1d034d466019ba6979f8..fae4c078841f9f903755a12e2033cfe2aa375f88 100644 |
--- a/webrtc/modules/utility/source/process_thread_impl_unittest.cc |
+++ b/webrtc/modules/utility/source/process_thread_impl_unittest.cc |
@@ -85,7 +85,9 @@ TEST(ProcessThreadImpl, ProcessCall) { |
std::unique_ptr<EventWrapper> event(EventWrapper::Create()); |
MockModule module; |
- EXPECT_CALL(module, TimeUntilNextProcess()).WillRepeatedly(Return(0)); |
+ EXPECT_CALL(module, TimeUntilNextProcess()) |
+ .WillOnce(Return(0)) |
+ .WillRepeatedly(Return(1)); |
EXPECT_CALL(module, Process()) |
.WillOnce(DoAll(SetEvent(event.get()), Return())) |
.WillRepeatedly(Return()); |
@@ -105,7 +107,9 @@ TEST(ProcessThreadImpl, ProcessCall2) { |
std::unique_ptr<EventWrapper> event(EventWrapper::Create()); |
MockModule module; |
- EXPECT_CALL(module, TimeUntilNextProcess()).WillRepeatedly(Return(0)); |
+ EXPECT_CALL(module, TimeUntilNextProcess()) |
+ .WillOnce(Return(0)) |
+ .WillRepeatedly(Return(1)); |
EXPECT_CALL(module, Process()) |
.WillOnce(DoAll(SetEvent(event.get()), Return())) |
.WillRepeatedly(Return()); |
@@ -128,7 +132,9 @@ TEST(ProcessThreadImpl, Deregister) { |
int process_count = 0; |
MockModule module; |
- EXPECT_CALL(module, TimeUntilNextProcess()).WillRepeatedly(Return(0)); |
+ EXPECT_CALL(module, TimeUntilNextProcess()) |
+ .WillOnce(Return(0)) |
+ .WillRepeatedly(Return(1)); |
EXPECT_CALL(module, Process()) |
.WillOnce(DoAll(SetEvent(event.get()), |
Increment(&process_count), |