mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
eb434c1c76
Differential Revision: D34351084 (https://github.com/facebook/react-native/commit/94891ab5f883efa55146dc42e1cd9705506794f3) Original commit changeset: 939b3985ab63 Original Phabricator Diff: D34351084 (https://github.com/facebook/react-native/commit/94891ab5f883efa55146dc42e1cd9705506794f3) fbshipit-source-id: 2fd17e0ccd9d1f1d643f4a372d84cb95f5add1f8
27 lines
641 B
C++
27 lines
641 B
C++
/*
|
|
* Copyright (c) Meta Platforms, Inc. and 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
|