summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYin-Chia Yeh <yinchiayeh@google.com>2015-03-12 15:09:27 -0700
committerYin-Chia Yeh <yinchiayeh@google.com>2015-03-16 13:11:11 -0700
commit5407ef1ec28742c5c60b04aae6c68835bb8c75fe (patch)
tree8241173d850a907fdbf64a5c7a466934d50f58bf /tests
parent240790d28637d85266d81cf1c334ae122dc84ff3 (diff)
downloadhardware_libhardware-5407ef1ec28742c5c60b04aae6c68835bb8c75fe.zip
hardware_libhardware-5407ef1ec28742c5c60b04aae6c68835bb8c75fe.tar.gz
hardware_libhardware-5407ef1ec28742c5c60b04aae6c68835bb8c75fe.tar.bz2
Camera: Fix tests per camera service interface change
Also clarify rotation field has no meaning and will always be 0 for a input stream. Change-Id: I0f4343a0bfa7bf09ba887c78a1da1c08daa35333
Diffstat (limited to 'tests')
-rw-r--r--tests/camera2/CameraMultiStreamTests.cpp2
-rw-r--r--tests/camera2/CameraStreamFixture.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/camera2/CameraMultiStreamTests.cpp b/tests/camera2/CameraMultiStreamTests.cpp
index 1edc28e..bfadfea 100644
--- a/tests/camera2/CameraMultiStreamTests.cpp
+++ b/tests/camera2/CameraMultiStreamTests.cpp
@@ -209,7 +209,7 @@ public:
ASSERT_EQ(OK,
mDevice->createStream(mNativeWindow,
mWidth, mHeight, mFormat, HAL_DATASPACE_UNKNOWN,
- &mStreamId));
+ CAMERA3_STREAM_ROTATION_0, &mStreamId));
ASSERT_NE(-1, mStreamId);
}
diff --git a/tests/camera2/CameraStreamFixture.h b/tests/camera2/CameraStreamFixture.h
index ff110d8..8a8c27d 100644
--- a/tests/camera2/CameraStreamFixture.h
+++ b/tests/camera2/CameraStreamFixture.h
@@ -258,6 +258,7 @@ protected:
device->createStream(mNativeWindow,
mWidth, mHeight, format,
HAL_DATASPACE_UNKNOWN,
+ CAMERA3_STREAM_ROTATION_0,
&mStreamId));
ASSERT_NE(-1, mStreamId);