From 46ee76c093796924de4e0d356220844a99d10707 Mon Sep 17 00:00:00 2001 From: Igor Murashkin Date: Mon, 18 Mar 2013 11:10:48 -0700 Subject: ProCameraTests: Minor add grey/frame count debug-only print outs Change-Id: I0f7b7f3c083a644e9bb0c2302244a5ad434e96a8 --- camera/tests/ProCameraTests.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'camera') diff --git a/camera/tests/ProCameraTests.cpp b/camera/tests/ProCameraTests.cpp index 71813ae..ecc0854 100644 --- a/camera/tests/ProCameraTests.cpp +++ b/camera/tests/ProCameraTests.cpp @@ -1015,6 +1015,9 @@ TEST_F(ProCameraTest, WaitForDualStreamBuffer) { ASSERT_NO_FATAL_FAILURE(createSubmitRequestForStreams(streams, /*count*/2, /*requests*/REQUEST_COUNT)); + int depthFrames = 0; + int greyFrames = 0; + // Consume two frames simultaneously. Unsynchronized by timestamps. for (int i = 0; i < REQUEST_COUNT; ++i) { @@ -1041,6 +1044,8 @@ TEST_F(ProCameraTest, WaitForDualStreamBuffer) { EXPECT_OK(depthConsumer->unlockBuffer(depthBuffer)); + depthFrames++; + /** Consume Greyscale frames if there are any. * There may not be since it runs at half FPS */ @@ -1053,9 +1058,14 @@ TEST_F(ProCameraTest, WaitForDualStreamBuffer) { ", timestamp = " << greyBuffer.timestamp << std::endl; EXPECT_OK(consumer->unlockBuffer(greyBuffer)); + + greyFrames++; } } + dout << "Done, summary: depth frames " << std::dec << depthFrames + << ", grey frames " << std::dec << greyFrames << std::endl; + // Done: clean up EXPECT_OK(mCamera->deleteStream(streamId)); EXPECT_OK(mCamera->exclusiveUnlock()); -- cgit v1.1