/*
 * 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

/*
 * 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

--- 
+++ 
@@ -18,8 +18,8 @@
  public:
   MockSurfaceHandler() : SurfaceHandler("moduleName", 0){};
 
-  MOCK_METHOD(void, setDisplayMode, (DisplayMode), (const, noexcept));
-  MOCK_METHOD(SurfaceId, getSurfaceId, (), (const, noexcept));
+  MOCK_QUALIFIED_METHOD1(setDisplayMode, const noexcept, void(DisplayMode));
+  MOCK_QUALIFIED_METHOD0(getSurfaceId, const noexcept, SurfaceId());
 };
 
 } // namespace react
Revert D34351084: Migrate from googletest 1.8 to googletest 1.10

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
