Files
react-native/ReactCommon/react/test_utils/MockSurfaceHandler.h
T
Dimitri Bouche 94891ab5f8 Migrate from googletest 1.8 to googletest 1.10 (#67)
Summary:
X-link: https://github.com/facebookincubator/hsthrift/pull/67

Updating `googletest` from `1.8.0` to `1.10.0`

Reviewed By: mzlee, igorsugak, luciang, meyering, r-barnes

Differential Revision: D34351084

fbshipit-source-id: 939b3985ab63a06b6d511ec8711c2d5863bdfea8
2022-03-03 03:46:03 -08:00

27 lines
629 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_METHOD(void, setDisplayMode, (DisplayMode), (const, noexcept));
MOCK_METHOD(SurfaceId, getSurfaceId, (), (const, noexcept));
};
} // namespace react
} // namespace facebook