From d2541e81c66ed5e72aa358b18dcbb29a2b62b21a Mon Sep 17 00:00:00 2001 From: "pbos@webrtc.org" Date: Tue, 21 May 2013 11:09:36 +0000 Subject: [PATCH] Remove usage from loopback.cc BUG= R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1522004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4077 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/video_engine/test/loopback.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webrtc/video_engine/test/loopback.cc b/webrtc/video_engine/test/loopback.cc index 5e7f3ca6b..c2bc15cc5 100644 --- a/webrtc/video_engine/test/loopback.cc +++ b/webrtc/video_engine/test/loopback.cc @@ -10,7 +10,7 @@ #include "testing/gtest/include/gtest/gtest.h" -#include +#include #include #include "webrtc/typedefs.h" @@ -76,8 +76,8 @@ TEST_F(LoopbackTest, Test) { camera->Start(); // TODO(pbos): Run this time limited (optionally), so it can run automated. - std::cout << ">> Press ENTER to continue..." << std::endl; - std::cin.ignore(std::numeric_limits::max(), '\n'); + puts(">> Press ENTER to continue..."); + while (getchar() != '\n' && !feof(stdin)); receive_stream->StopReceive(); send_stream->StopSend();