summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-08-16 07:21:14 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-08-16 07:21:14 +0000
commit39d5d150d9ebbc71a6cdc8a06f8c8e646806bf04 (patch)
tree7cef56c1a7c6b933a768ecdb04850a765ecb037f
parentec87f84aa7b052361297d735f9c7659782f8ff02 (diff)
parent92d3bc1e1ad81c3cb550a5086888eb31350b1728 (diff)
downloadplatform_hardware_interfaces-oreo-dr1-release.tar.gz
platform_hardware_interfaces-oreo-dr1-release.tar.bz2
platform_hardware_interfaces-oreo-dr1-release.zip
Change-Id: I6e8eaeac26ab912a95402cf66575fa0b81d35a73
-rw-r--r--camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp b/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp
index 3b9d35c3db..6f04efc598 100644
--- a/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp
+++ b/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp
@@ -1527,8 +1527,8 @@ TEST_F(CameraHidlTest, cancelPicture) {
}
}
-// Image capture cancel should fail when image capture is not running.
-TEST_F(CameraHidlTest, cancelPictureFail) {
+// Image capture cancel is a no-op when image capture is not running.
+TEST_F(CameraHidlTest, cancelPictureNOP) {
for (auto provider : CameraHidlEnvironment::Instance()->mProviders) {
hidl_vec<hidl_string> cameraDeviceNames = getCameraDeviceNames(
provider.second);
@@ -1547,7 +1547,7 @@ TEST_F(CameraHidlTest, cancelPictureFail) {
Return<Status> returnStatus = device1->cancelPicture();
ASSERT_TRUE(returnStatus.isOk());
- ASSERT_NE(Status::OK, returnStatus);
+ ASSERT_EQ(Status::OK, returnStatus);
stopPreviewAndClose(device1);
}