Summary: X-link: https://github.com/facebook/react-native/pull/38304 Pull Request resolved: https://github.com/facebook/yoga/pull/1326 For better readability Reviewed By: christophpurrer Differential Revision: D47384926 fbshipit-source-id: 2f60d50a185331b3624d45d1fc45f98d504b3034
28 lines
589 B
C++
28 lines
589 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 <yoga/event/event.h>
|
|
|
|
#include <functional>
|
|
|
|
namespace facebook::yoga::test {
|
|
|
|
struct YOGA_EXPORT TestUtil {
|
|
static void startCountingNodes();
|
|
static int nodeCount();
|
|
static int stopCountingNodes();
|
|
};
|
|
|
|
struct ScopedEventSubscription {
|
|
ScopedEventSubscription(std::function<Event::Subscriber>&&);
|
|
~ScopedEventSubscription();
|
|
};
|
|
|
|
} // namespace facebook::yoga::test
|