Chromium Code Reviews| Index: webrtc/video/full_stack.cc |
| diff --git a/webrtc/video/full_stack.cc b/webrtc/video/full_stack.cc |
| index 008116cc7007bf08e47b1af934566a533bf09cbb..7768575c873febea1899b8aa9ba5495cd1dc9777 100644 |
| --- a/webrtc/video/full_stack.cc |
| +++ b/webrtc/video/full_stack.cc |
| @@ -222,6 +222,7 @@ class VideoAnalyzer : public PacketReceiver, |
| int last_frames_processed = -1; |
| EventTypeWrapper eventType; |
| + int iteration = 0; |
| while ((eventType = done_->Wait(FullStackTest::kDefaultTimeoutMs)) != |
| kEventSignaled) { |
| int frames_processed; |
| @@ -231,6 +232,14 @@ class VideoAnalyzer : public PacketReceiver, |
| } |
| if (last_frames_processed == -1) { |
| last_frames_processed = frames_processed; |
| + |
| + // Print some output so test infrastructure won't think we've crashed. |
| + const char* kKeepAliveMessages[3] = { |
| + "Uh, I'm-I'm not quite dead, sir.", |
|
pbos-webrtc
2015/08/31 12:30:27
Wat? Where should this really be? This should be c
sprang_webrtc
2015/08/31 13:05:17
This should be called for every timeout (kDefaultT
|
| + "Uh, I-I think uh, I could pull through, sir.", |
| + "Actually, I think I'm all right to come with you--"}; |
| + printf("%s\n", kKeepAliveMessages[iteration++ % 3]); |
| + |
| continue; |
| } |
| ASSERT_GT(frames_processed, last_frames_processed) |
| @@ -238,6 +247,8 @@ class VideoAnalyzer : public PacketReceiver, |
| last_frames_processed = frames_processed; |
| } |
| + printf("Farewell, sweet Concorde!\n"); |
| + |
| // Signal stats polling thread if that is still waiting and stop it now, |
| // since it uses the send_stream_ reference that might be reclaimed after |
| // returning from this method. |