Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixes android java tests
  • Loading branch information
BradenBagby committed Feb 15, 2023
commit 6fc7df4c89f435b4e890bd39f49dd9f46e1cf04d
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,13 @@ public void setDescriptionWhileRecording() {
final CameraProperties newCameraProperties = mock(CameraProperties.class);
camera.setDescriptionWhileRecording(mockResult, newCameraProperties);

verify(mockResult, times(1)).success(null);
verify(mockResult, never()).error(any(), any(), any());
if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.O) {
verify(mockResult, times(1))
.error(eq("setDescriptionWhileRecordingFailed"), eq("Device does not support"), eq(null));
} else {
verify(mockResult, times(1)).success(null);
verify(mockResult, never()).error(any(), any(), any());
}
}

@Test
Expand Down