| 49 | } |
| 50 | |
| 51 | Ref<ViewNode> ViewNodeTestsDependencies::createNode(const char* viewClassName) { |
| 52 | auto viewNode = Valdi::makeShared<ViewNode>( |
| 53 | _attributesManager.getYogaConfig(), _attributesManager.getAttributeIds(), _attributesManager.getLogger()); |
| 54 | viewNode->setViewNodeTree(_tree.get()); |
| 55 | viewNode->setViewFactory(*_viewTransactionScope, _viewFactories->getViewFactory(STRING_LITERAL(viewClassName))); |
| 56 | |
| 57 | return viewNode; |
| 58 | } |
| 59 | |
| 60 | Ref<ViewNode> ViewNodeTestsDependencies::createView() { |
| 61 | return createNode("View"); |
no test coverage detected