mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 06:22:53 +00:00
Merge "Camera: Switch 'cancelPictureFail' to 'cancelPictureNOP'" into oc-dev
am: e2dae8c258
Change-Id: If093cdfdb9ea0a327a5e67dc0dd40facc466de5c
This commit is contained in:
@@ -1527,8 +1527,8 @@ TEST_F(CameraHidlTest, cancelPicture) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Image capture cancel should fail when image capture is not running.
|
// Image capture cancel is a no-op when image capture is not running.
|
||||||
TEST_F(CameraHidlTest, cancelPictureFail) {
|
TEST_F(CameraHidlTest, cancelPictureNOP) {
|
||||||
for (auto provider : CameraHidlEnvironment::Instance()->mProviders) {
|
for (auto provider : CameraHidlEnvironment::Instance()->mProviders) {
|
||||||
hidl_vec<hidl_string> cameraDeviceNames = getCameraDeviceNames(
|
hidl_vec<hidl_string> cameraDeviceNames = getCameraDeviceNames(
|
||||||
provider.second);
|
provider.second);
|
||||||
@@ -1547,7 +1547,7 @@ TEST_F(CameraHidlTest, cancelPictureFail) {
|
|||||||
|
|
||||||
Return<Status> returnStatus = device1->cancelPicture();
|
Return<Status> returnStatus = device1->cancelPicture();
|
||||||
ASSERT_TRUE(returnStatus.isOk());
|
ASSERT_TRUE(returnStatus.isOk());
|
||||||
ASSERT_NE(Status::OK, returnStatus);
|
ASSERT_EQ(Status::OK, returnStatus);
|
||||||
|
|
||||||
stopPreviewAndClose(device1);
|
stopPreviewAndClose(device1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user