Index: webrtc/video/rampup_tests.cc |
diff --git a/webrtc/video/rampup_tests.cc b/webrtc/video/rampup_tests.cc |
index e2dce3f3f8beb9c865238e209ef07470968cb2d3..cce0795b11a1b2f60e21a2ce070e036e6a97a6a2 100644 |
--- a/webrtc/video/rampup_tests.cc |
+++ b/webrtc/video/rampup_tests.cc |
@@ -273,10 +273,8 @@ void RampUpTester::TriggerTestDone() { |
void RampUpTester::PerformTest() { |
test_start_ms_ = clock_->TimeInMilliseconds(); |
poller_thread_->Start(); |
- if (Wait() != kEventSignaled) { |
- printf("Timed out while waiting for ramp-up to complete."); |
- return; |
- } |
+ EXPECT_EQ(kEventSignaled, Wait()) |
+ << "Timed out while waiting for ramp-up to complete."; |
TriggerTestDone(); |
poller_thread_->Stop(); |
} |