2019-06-06 19:36:56 -07:00
|
|
|
/*
|
2022-10-04 13:59:32 -07:00
|
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
2019-05-09 04:14:08 -07:00
|
|
|
*
|
2019-10-15 10:30:08 -07:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2019-05-09 04:14:08 -07:00
|
|
|
*/
|
2019-10-15 10:30:08 -07:00
|
|
|
|
2019-05-09 04:14:08 -07:00
|
|
|
#pragma once
|
|
|
|
|
2019-05-09 07:42:34 -07:00
|
|
|
#include <yoga/event/event.h>
|
2019-05-09 04:14:08 -07:00
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
|
2023-07-12 09:38:40 -07:00
|
|
|
namespace facebook::yoga::test {
|
2019-05-09 04:14:08 -07:00
|
|
|
|
2023-09-11 19:51:40 -07:00
|
|
|
struct TestUtil {
|
2019-05-09 04:14:08 -07:00
|
|
|
static void startCountingNodes();
|
|
|
|
static int nodeCount();
|
|
|
|
static int stopCountingNodes();
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ScopedEventSubscription {
|
2024-03-02 23:11:50 -08:00
|
|
|
explicit ScopedEventSubscription(std::function<Event::Subscriber>&&);
|
2019-05-09 04:14:08 -07:00
|
|
|
~ScopedEventSubscription();
|
|
|
|
};
|
|
|
|
|
2023-07-12 09:38:40 -07:00
|
|
|
} // namespace facebook::yoga::test
|