Files
react-native/ReactCommon/react/test_utils/MockSurfaceHandler.h
T
Phillip Pan 6a344fe900 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
2021-11-23 02:01:25 -08:00

27 lines
639 B
C++

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <gmock/gmock.h>
#include <react/renderer/scheduler/SurfaceHandler.h>
namespace facebook {
namespace react {
class MockSurfaceHandler : public SurfaceHandler {
public:
MockSurfaceHandler() : SurfaceHandler("moduleName", 0){};
MOCK_QUALIFIED_METHOD1(setDisplayMode, const noexcept, void(DisplayMode));
MOCK_QUALIFIED_METHOD0(getSurfaceId, const noexcept, SurfaceId());
};
} // namespace react
} // namespace facebook