[SF] Adds notifyExpectedPresent call for timeoutNs
Update notifyExpectedPresent to notifyExpectedPresentIfRequired
BUG: 296636253
BUG: 284845445
Test: atest HWComposerTest &&
libsurfaceflinger_unittest
Change-Id: Ibb2b70cd6073be7c0c2be0507b47e6f5732a9303
diff --git a/services/surfaceflinger/CompositionEngine/tests/MockHWComposer.h b/services/surfaceflinger/CompositionEngine/tests/MockHWComposer.h
index facb808..6807c8e 100644
--- a/services/surfaceflinger/CompositionEngine/tests/MockHWComposer.h
+++ b/services/surfaceflinger/CompositionEngine/tests/MockHWComposer.h
@@ -147,7 +147,8 @@
MOCK_METHOD(const aidl::android::hardware::graphics::composer3::OverlayProperties&,
getOverlaySupport, (), (const, override));
MOCK_METHOD(status_t, setRefreshRateChangedCallbackDebugEnabled, (PhysicalDisplayId, bool));
- MOCK_METHOD(status_t, notifyExpectedPresent, (PhysicalDisplayId, nsecs_t, int32_t));
+ MOCK_METHOD(status_t, notifyExpectedPresentIfRequired,
+ (PhysicalDisplayId, nsecs_t, int32_t, int32_t));
};
} // namespace mock