Revert D48710796: C++ Cleanup 2/N: Reorganize YGConfig
Differential Revision: D48710796 Original commit changeset: d548553f7ce8 Original Phabricator Diff: D48710796 fbshipit-source-id: c8b2de245f3894f6a87c262ec70d313020aa228e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ea7f61a3db
commit
13c5ce2234
@@ -9,16 +9,14 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <yoga/Yoga.h>
|
||||
#include <yoga/config/Config.h>
|
||||
#include <yoga/YGConfig.h>
|
||||
#include <yoga/YGNode.h>
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
|
||||
using namespace facebook;
|
||||
|
||||
struct ConfigCloningTest : public ::testing::Test {
|
||||
std::unique_ptr<yoga::Config, std::function<void(yoga::Config*)>> config;
|
||||
std::unique_ptr<YGConfig, std::function<void(YGConfig*)>> config;
|
||||
void SetUp() override;
|
||||
void TearDown() override;
|
||||
|
||||
@@ -58,7 +56,7 @@ TEST_F(ConfigCloningTest, can_clone_with_context) {
|
||||
}
|
||||
|
||||
void ConfigCloningTest::SetUp() {
|
||||
config = {static_cast<yoga::Config*>(YGConfigNew()), YGConfigFree};
|
||||
config = {YGConfigNew(), YGConfigFree};
|
||||
}
|
||||
|
||||
void ConfigCloningTest::TearDown() {
|
||||
|
Reference in New Issue
Block a user