From 6a344fe900086df95ec3ebd7ea9c3bb63582ff1a Mon Sep 17 00:00:00 2001 From: Phillip Pan Date: Tue, 23 Nov 2021 01:59:41 -0800 Subject: [PATCH] introduce removePrerenderedSurfaceWithRootTag: Summary: similar to android, we want to handle removing dropped surfaces. in this diff, we add the API to do so. Changelog: [Internal] Reviewed By: sammy-SC Differential Revision: D32557069 fbshipit-source-id: 2487c459df3f1f412ad0da77568d6c0ab0a1298c --- ReactCommon/react/test_utils/MockSurfaceHandler.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ReactCommon/react/test_utils/MockSurfaceHandler.h b/ReactCommon/react/test_utils/MockSurfaceHandler.h index c6f678ce484..851603b1b79 100644 --- a/ReactCommon/react/test_utils/MockSurfaceHandler.h +++ b/ReactCommon/react/test_utils/MockSurfaceHandler.h @@ -19,6 +19,7 @@ class MockSurfaceHandler : public SurfaceHandler { MockSurfaceHandler() : SurfaceHandler("moduleName", 0){}; MOCK_QUALIFIED_METHOD1(setDisplayMode, const noexcept, void(DisplayMode)); + MOCK_QUALIFIED_METHOD0(getSurfaceId, const noexcept, SurfaceId()); }; } // namespace react