Skip to content
Merged
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
Next Next commit
update tests
  • Loading branch information
davidmartos96 committed Mar 19, 2025
commit 90863818c660f55ca4d7acbb2f2a843ebf4d4e13
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,7 @@ public void getRecordingProfileLegacy() {

CamcorderProfile actualRecordingProfile = camera.getRecordingProfileLegacy();

// First time: getRecordingProfileLegacy() is called in `before()` when
// camera constructor tries to determine default recording Fps.
// Second time: in this test case.
verify(mockResolutionFeature, times(2)).getRecordingProfileLegacy();
verify(mockResolutionFeature, times(1)).getRecordingProfileLegacy();
assertEquals(mockCamcorderProfile, actualRecordingProfile);
}

Expand All @@ -104,7 +101,7 @@ public void getRecordingProfile() {

EncoderProfiles actualRecordingProfile = camera.getRecordingProfile();

verify(mockResolutionFeature, times(2)).getRecordingProfile();
verify(mockResolutionFeature, times(1)).getRecordingProfile();
assertEquals(mockRecordingProfile, actualRecordingProfile);
}

Expand Down