mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:23:37 +00:00
Merge "Camera: Switch 'cancelPictureFail' to 'cancelPictureNOP'" into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fc371311ad
@@ -1417,8 +1417,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) {
|
||||
hidl_vec<hidl_string> cameraDeviceNames = getCameraDeviceNames(mProvider);
|
||||
|
||||
for (const auto& name : cameraDeviceNames) {
|
||||
@@ -1433,7 +1433,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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user