mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
6a344fe900
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
27 lines
639 B
C++
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
|