Merge "Update CameraStreamBuffering test case" into tm-dev

This commit is contained in:
Changyeon Jo
2022-05-02 21:57:32 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 2 deletions

View File

@@ -563,7 +563,8 @@ TEST_P(EvsHidlTest, CameraStreamBuffering) {
activeCameras.push_back(pCam);
// Ask for a very large number of buffers in flight to ensure it errors correctly
Return<EvsResult> badResult = pCam->setMaxFramesInFlight(0xFFFFFFFF);
Return<EvsResult> badResult =
pCam->setMaxFramesInFlight(std::numeric_limits<int32_t>::max());
EXPECT_EQ(EvsResult::BUFFER_NOT_AVAILABLE, badResult);
// Now ask for exactly two buffers in flight as we'll test behavior in that case

View File

@@ -526,7 +526,7 @@ TEST_P(EvsAidlTest, CameraStreamBuffering) {
mActiveCameras.push_back(pCam);
// Ask for a very large number of buffers in flight to ensure it errors correctly
auto badResult = pCam->setMaxFramesInFlight(0xFFFFFFFF);
auto badResult = pCam->setMaxFramesInFlight(std::numeric_limits<int32_t>::max());
EXPECT_TRUE(!badResult.isOk() && badResult.getServiceSpecificError() ==
static_cast<int>(EvsResult::INVALID_ARG));